189. Rotate Array
LeetCode 189题
问题描述:
Given an array, rotate the array to the right by k steps, where k is non-negative.
Example 1:
Input: [1,2,3,4,5,6,7] and k = 3
Output: [5,6,7,1,2,3,4]
Explanation:
rotate 1 st...
原创
2019-02-01 23:39:54 ·
123 阅读 ·
0 评论