Skip to content

Files

Latest commit

aQuaaQua
aQua
and
aQua
Sep 4, 2017
9c13f60 · Sep 4, 2017

History

History

0061.rotate-list

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 4, 2017
Sep 4, 2017
Sep 4, 2017

题目

Given a list, rotate the list to the right by k places, where k is non-negative. For example:

Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.

解题思路

见程序注释