← Amazon questions

Efficient search in an array with bounded step difference

Filed under Amazon

Given an array where adjacent elements differ by at most 1, find the index of a target value efficiently.

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.