You are viewing a single comment's thread. Return to all comments →
i played with indexes ..
1first reverse the first half (n-roation) and then reverse next half(the size of rotion rt) - do it one by one ....and at last then reverse the whole arry..
you just need to pass the indices in reverse function..the code is written