← Amazon questions

Find start and end index in a huge sorted array

Filed under Amazon

Given a sorted array of integers (potentially very large or unbounded) and a target value, find the first and last occurrence indices of the target. Return [-1, -1] if not found.

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 Amazon questions

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