
Brainteaser
zshouyi
这个作者很懒,什么都没留下…
展开
-
292. Nim Game
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the原创 2017-02-04 07:26:06 · 210 阅读 · 0 评论 -
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原创 2017-03-16 14:54:40 · 518 阅读 · 0 评论