摘要: 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- 阅读全文
posted @ 2016-02-19 20:16 小金乌会发光-Z&M 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After rem 阅读全文
posted @ 2016-02-19 17:04 小金乌会发光-Z&M 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, swap every two adjacent(相邻的) nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Y 阅读全文
posted @ 2016-02-19 15:19 小金乌会发光-Z&M 阅读(231) 评论(0) 推荐(0) 编辑