#374
The 100 Lockers
Also asked as: The 100 lockers problem · the 100 doors puzzle · which lockers stay open
One of the classic quant interview questions, free to read in full.
MediumBrainteasers & Logic
Problem
100 closed lockers line a hallway. Person 1 toggles every locker, person 2 toggles every 2nd locker, person toggles every -th, up to person 100. After all 100 passes, which lockers are open, and how many?
Your answer
Accepts decimals, fractions (5/12), and percentages (25%).