Problem 672 · Medium

Bulb Switcher II

Track every distinct bulb state reachable in exactly m presses of the four buttons.

Open the interactive visualisation