← Google questions
CodingReported in a candidate post, Jan 2022

Find target indices in an unsorted array as if sorted

Filed under Google

Given an unsorted array of integers and a target value, return the indices that the target would occupy if the array were sorted in non-decreasing order. Handle duplicate target values by returning…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.