【leetcode】【189】Rotate Array
摘要:
#include#includeusing namespace std;class Solution {public: void rotate(vector& nums, int k) { //可参考STL源码剖析rotate()算法 k = k%nums.size(); vector::it... 阅读全文
posted @ 2015-05-09 14:10 ruan875417 阅读(130) 评论(0) 推荐(0) 编辑