| |
GeekInterview.com > Placement Papers > Cognizant
| Print | |
Question: there are 1000 doors that are of the open-close type. When a person opens the door he closes it and then opens the other. When the first person goes he opens-closes the doors ion the multiples of 1 i.e., he opens and closes all the doors. when the second goes he opens and closes the doors 2, 4 6 8 resly. Similarly when the third one goes he does this for 3 6 9 12 15th doors resly. Find number of doors that are open at last.
|
| March 03, 2006 07:47:44 |
#4 |
| sriram |
Member Since: Visitor Total Comments: N/A |
RE: there are 1000 doors that are of the open-close ty... |
hi, the question was at last how many doors will be open. but the question makes clear that when each door is opened it is closed immediately, so at the last all doors will be closed irrespective of in which thw doors are opened. if not satisfied reply me with ur comments. bye |
| |
Back To Question | |