โ† Amazon questions

Row with maximum zeroes in a sorted binary matrix

Filed under Amazon

Given a 2D matrix containing only 1s and 0s where every row is sorted in non-decreasing order, find the index of the row that has the maximum number of zeroes.

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.