โ† Amazon questions

Iterations to fill binary array with 1s

Filed under Amazon

Given an array of 0s and 1s, determine how many iterations it takes to fill the entire array with 1s, where in each iteration any 0 immediately adjacent to a 1 becomes 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.