LeetCode 319. Bulb Switcher(灯泡)
原题网址:https://leetcode.com/problems/bulb-switcher/
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 e
原创
2016-04-24 01:14:06 ·
452 阅读 ·
0 评论