โ† Amazon questions

Minimum flips to make string monotone increasing

Filed under Amazon

Given a binary string s, you can flip '0' to '1' or '1' to '0'. Return the minimum number of flips to make s monotone increasing, meaning all '0's appear before all '1's.

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.