You have 100 doors in a row that are initially closed. You make 100 passes by the door and change it's status i.e (you make the closed door open and the open door closed). After the first pass
you visit every 2nd door(i.2,4,6,8...) and in the next pass you visit every 3rd door and so on.
After all the pass which doors are closed and which are open.
you visit every 2nd door(i.2,4,6,8...) and in the next pass you visit every 3rd door and so on.
After all the pass which doors are closed and which are open.
4 comments:
Solution: http://www.puzzlearena.blogspot.in/2012/06/100-door-puzzle-solution.html
In the above problem how to replace 100doors by n doors
Post a Comment