if i have understood the problem correctly... you please confirm the answers i am getting for the given inputs:- result 1) 1 2 3 4 5 4 2) 1 2 3 4 5 6 5 3) 1 2 3 4 5 6 7 4 4) 1 2 3 4 5 6 7 8 8
On Wed, Feb 15, 2012 at 11:38 PM, Dheeraj Sharma < dheerajsharma1...@gmail.com> wrote: > yeah..we need to calculate some formula > > > On Wed, Feb 15, 2012 at 10:21 PM, pavan <pavankri...@gmail.com> wrote: > >> @Utkarsh: yeah it is josephsus problem with a slight change.....using >> a linked list will give u TLE i guess. >> >> >> On Feb 14, 10:36 pm, vickywiz <vickywiz...@gmail.com> wrote: >> > in 1 2 3 4 5 6...o/p "ll b 5 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > > > -- > *Dheeraj Sharma* > > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > 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 algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.