N people are standing in a circle ,they start shooting the person standing *next to their neighbour.*If they start firing in this way , determine who will be alive after this sequence??
Just for confirming, if only 2 person are left, then out of guilt of killing other's does the person who has gun shoot himself? On Fri, Jul 22, 2011 at 10:04 AM, surender sanke <[email protected]>wrote: > josephus problem with mentioned k, k determines after how many persons to > execute, u guys are considering k=1 as josephus problem. > its with k=2 and still remains josephus problem. > > > On Fri, Jul 22, 2011 at 12:40 AM, chetan kapoor <[email protected] > > wrote: > >> yeah u r wrong...the question says the person will kill the person >> standing next to its neighbor.. >> >> >> On Thu, Jul 21, 2011 at 4:16 PM, SAMMM <[email protected]> wrote: >> >>> Consider this Example:- >>> >>> >>> >>> 1 2 3 4 5 6 7 1 In CIrcle .... >>> >>> 1 kills 2 >>> 3 kills 4 >>> 5 kills 6 >>> 7 kills 1 >>> >>> Remaining ppl :- 3 5 7 >>> >>> 3 kills 5 >>> 7 kills 3 >>> >>> Remain-> 7 >>> >>> >>> This is the sequence .. i guess .... Isit???? >>> >>> -- >>> 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. >>> >>> >> -- >> 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. >> > > -- > 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. > -- 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.
