← Amazon questions

Find the position of the first 1 in an array of 0s and 1s

Filed under Amazon

Given a sorted array of 0s followed by 1s, find the position of the first 1. Extend the solution for an infinite data stream where the array size is unknown.

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.