โ† Amazon questions

Maximum Consecutive 1s with Single Zero Flip

Filed under Amazon

Given a binary array consisting of 0s and 1s, find the maximum number of consecutive 1s you can get if you are allowed to flip at most one 0 to a 1.

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.