摘要: Find the Duplicate NumberGiven an arraynumscontainingn+ 1 integers where each integer is between 1 andn(inclusive), prove that at least one duplicate ... 阅读全文
posted @ 2015-10-02 17:51 `Liok 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 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,return... 阅读全文
posted @ 2015-10-02 16:21 `Liok 阅读(227) 评论(0) 推荐(0) 编辑