摘要:
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No... 阅读全文
posted @ 2015-12-08 21:55
code_yang
阅读(173)
评论(0)
推荐(0)
摘要:
Reverse a singly linked list. 阅读全文
posted @ 2015-12-08 20:57
code_yang
阅读(188)
评论(0)
推荐(0)
摘要:
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL. 阅读全文
posted @ 2015-12-08 20:38
code_yang
阅读(328)
评论(0)
推荐(0)
摘要:
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor... 阅读全文
posted @ 2015-12-08 19:20
code_yang
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号