2014年8月26日

leetcode - Reverse Linked List II

摘要: 题目:Reverse Linked List IIReverse 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,ret... 阅读全文

posted @ 2014-08-26 12:03 laihaiteng 阅读(117) 评论(0) 推荐(0)

leetcode - Partition List

摘要: 题目:Partition ListGiven a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should p... 阅读全文

posted @ 2014-08-26 11:54 laihaiteng 阅读(116) 评论(0) 推荐(0)

导航