use circular link list put element into array and shift start point k nodes
leftwards...

On Sat, Sep 10, 2011 at 7:57 PM, praveen raj <[email protected]> wrote:

> @all...
> arr=[3,6,7,1,2,7,8,9]
> suppose: k=3 rotated three times..
> first step... reverse.. first k(3) elements... [7,6,3,1,2,7,8,9]
> second step...reverse last (n-k) elements... [7,6,3,9,8,7,2,1]
> third step reverse the whole array....[1,2,7,8,9,3,6,7]
>
>
> thanx,
>
> With regards,
>
> Praveen Raj
> DCE-IT 3rd yr
>
>
>
>  --
> 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.
>



-- 
AMRIT

-- 
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.

Reply via email to