0926. Flip String to Monotone Increasing
Description
**Input:** s = "00110"
**Output:** 1
**Explanation:** We flip the last digit to get 00111.**Input:** s = "010110"
**Output:** 2
**Explanation:** We flip to get 011111, or alternatively 000111.**Input:** s = "00011000"
**Output:** 2
**Explanation:** We flip to get 00000000.ac
Last updated