Crayon Kingdom A tech, develop and reading blog.

Summary and thinking on Bulb Switcher problem

Bulb Switcher Problem: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turning off if it's on). For the ith ... Read more
Posted at 2016-08-16 05:20:55 by Ares Ou

Search


Categories