
Desicription
Given a list, rotate the list to the right by k places, where k is non-negative.
Example:
1 |
Given 1->2->3->4->5->NULL and k = 2, |
Solution
1 |
|

Given a list, rotate the list to the right by k places, where k is non-negative.
Example:
1 |
Given 1->2->3->4->5->NULL and k = 2, |
1 |
|
近期评论