Interview Question

Financial Software Developer Interview

I got stuck at the logic question, the answer didn't strike

  me at that time. The question was : There are 100 bulbs, all off at first. In the 1st round, all bulbs are switched on, in the second round every second bulb changes state, in the third round every third bulb changes state and so on. Which all bulb will be on at the end of 100th round?
Answer

Interview Answer

1 Answer

0

the answer is all the square numbers bulbs are on.

Xin Du on May 13, 2013

Add Answers or Comments

To comment on this question, Sign In with Facebook or Sign Up