#leetcode#Rotate Array

http://articles.leetcode.com/2010/04/rotating-array-in-place.html


http://www.geeksforgeeks.org/array-rotation/


http://www.geeksforgeeks.org/program-for-array-rotation-continued-reversal-algorithm/


http://www.geeksforgeeks.org/block-swap-algorithm-for-array-rotation/



倾向于用两次反转来做, cycle sort也可解, 但是没看懂呢, 见下


https://leetcode.com/discuss/26088/two-solution-with-extra-memory-dont-know-the-third-one-yet-idea

你可能感兴趣的:(LeetCode)