1 2 3 4 5 6 7 8 9 10 o 2 4 6 8 10 c 3 9 0 4c Code for the below logic. it works. Only perfect square numbered doors are open. http://codepad.org/wcsvhZmu
On Mon, May 31, 2010 at 4:59 AM, sharad kumar <[email protected]>wrote: > @veera:only the perfect square numbers will be open > 1,4,9,16,25...100 > > > On Mon, May 31, 2010 at 9:37 AM, Veer Sharma <[email protected]>wrote: > >> Hi Friends, >> >> Here's a problem from my side: >> >> 100 rooms are in a prison. All doors are closed initially. A policeman >> on round i will toggle the doors that are in multiples of i. >> After 100 rounds, which doors will be open? >> >> >> Lets try get a solution. >> >> Thanks, >> Veer >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<algogeeks%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > > > -- > yezhu malai vaasa venkataramana Govinda Govinda > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
