โ† Amazon questions
CodingReported in a candidate post, Oct 2014

Find element count and boundaries using Binary Search

Filed under Amazon

Given a sorted array of integers containing duplicates, find the first and last index of a target value using binary search. Use these indices to return the total count of the target.

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.