摘要: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given1->2->3->4->5->NULL, m = 2 and n = 4, return1->4->3->2->5 阅读全文
posted @ 2017-06-16 15:01 王大咩的图书馆 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given1->2->3->4->5->NULLand k =2,return4->5->1->2->3->NUL 阅读全文
posted @ 2017-06-16 11:17 王大咩的图书馆 阅读(205) 评论(0) 推荐(0) 编辑