阅读背景:

leetcode_319. 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 every third bulb (turning on if it's off or turning off if it's on). For the  bulbs that are initially o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: