2015年1月8日

摘要: 题目: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... 阅读全文
posted @ 2015-01-08 23:44 承续缘 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: 题目:Sort a linked list inO(nlogn) time using constant space complexity.代码:oj 测试通过Runtime:372 ms 1 # Definition for singly-linked list. 2 # class ListNo... 阅读全文
posted @ 2015-01-08 17:28 承续缘 阅读(379) 评论(0) 推荐(0) 编辑

导航