Problem 319 · Medium

Bulb Switcher

Count bulbs that are on after n rounds of switching.

Open the interactive visualisation