Given an array of 'n' values you need to circular shift it 'k' times towards
left.

Input : 9 7 6 5 3 23 14  2  4
output : 5 3 23 14 2  4 9 7  6

n=9 , k= 3

constraints : Time complexity O(n)
Space complexity O(1)

The solutions with O(kn) time complexity and
O(n) complexity with O(k) space complexity are already available.

I want the O(n) solution with constant space..
-- 
Regards
Kumar Raja
M.Tech(SIT)
IIT Kharagpur,
[email protected]
7797137043.
09491690115.

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