1529. Bulb Switcher IV
Description
**Input:** target = "10111"
**Output:** 3
**Explanation:** Initial configuration "00000".
flip from the third bulb: "00000" -> "00111"
flip from the first bulb: "00111" -> "11000"
flip from the second bulb: "11000" -> "10111"
We need at least 3 flip operations to form target.ac
Last updated