But there are door numbers that would open, for example, in 16, the divisors are (1,2,4,8,16) and as the pair(4,4) contributes only one divisor making the number of divisors odd, it would become open at the end. It looks like all doors would become closed at the end. The door is switched back to an initial stage for every pair of divisors. For example, door number 45 is toggled in the 1 st, 3 rd, 5 th, 9 th,15 th, and 45 th walks. In the 100 th walk, the person toggles the 100 th door.Ī door is toggled in an i th walk if i divide door number. In the third walk, the person toggles every third door, i.e. In the second walk, the person toggles every second door, i.e., 2 nd, 4 th, 6 th, 8 th, … In the first walk, the person toggles every door
![100 doors lvl 20 100 doors lvl 20](http://www.freeappgg.com/uploads/1/0/1/7/10178123/7652350_orig.png)
Program to find GCD or HCF of two numbers.Set in C++ Standard Template Library (STL).Write a program to print all permutations of a given string.Puzzle 8 | (Find the Jar with contaminated pills).Puzzle 5 | (Finding the Injection for Anesthesia).Puzzle 4 | (Pay an employee using a gold rod of 7 units ?).Puzzle 3 | (Calculate total distance travelled by bee).Puzzle 1 | (How to Measure 45 minutes using two identical wires?).Puzzle 20 | (5 Pirates and 100 Gold Coins).Puzzle 17 | (Ratio of Boys and Girls in a Country where people want only boys).Puzzle 14 | (Strategy for a 2 Player Coin Game).Puzzle 13 | (100 Prisoners with Red/Black Hats).Puzzle 12 | (Maximize probability of White Ball).
![100 doors lvl 20 100 doors lvl 20](http://1.bp.blogspot.com/-nocvVM5nNAQ/Uv0FrZ1bFlI/AAAAAAABH3o/zNcpoEVYQCw/s1600/100+Doors+2+Level+20.png)
Puzzle 10 | (A Man with Medical Condition and 2 Pills).ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.
![100 doors lvl 20 100 doors lvl 20](https://3.bp.blogspot.com/-k7tFZFVr1LQ/V0fKJnLOWeI/AAAAAAAAfb0/CTAOx3LaeaQL5xx5P_JaT_M6xVcZOzb1wCLcB/s1600-d/Luna_DOTA_2_Wallpaper_Fondo_Loading_screen_4.jpg)
GATE CS Original Papers and Official Keys.