将一个链表的元素分步从后向前移动

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.

posted @ 2015-12-08 20:38  code_yang  阅读(322)  评论(0编辑  收藏  举报