← Amazon questions

Rearrange 0s and 1s into Fibonacci sequence counts

Filed under Amazon

Given an array of 0s and 1s, rearrange or print the numbers following a Fibonacci sequence of counts (1 zero, then 1 one, then 2 zeros, then 3 ones, and so on).

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.