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.
