Problem 1529 · Medium

Minimum Suffix Flips

Count the flips needed to turn a binary string into the target by flipping whenever the required value changes from one position to the next. The visual shows the bit pattern and the flip points.

Open the interactive visualisation