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 <
[email protected]> wrote:
> yeah..we need to calculate some formula
>
>
> On Wed, Feb 15, 2012 at 10:21 PM, pavan <[email protected]> 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 <[email protected]> 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 [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.
>>
>>
>
>
> --
> *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 [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.