Blog Archives

Rotating Array in both side (left and right) in a efficient manner

knowledge Sharing

Friends  the above my algorithm works in 0(3n) of time complexity and O(2) of space complexity.  If possible try to optimize it.

Please give your comments.

View original post