โ† Amazon questions

Count number of 0s in a sorted binary array

Filed under Amazon

Given a sorted binary array consisting of a sequence of 1s followed by a sequence of 0s, determine the total count of 0s 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.