IncredibleThings

导航

2016年9月23日 #

LeetCode-Rotate List

摘要: 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. /** * Definition for singly-linked l... 阅读全文

posted @ 2016-09-23 05:50 IncredibleThings 阅读(121) 评论(0) 推荐(0)