摘要: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2- 阅读全文
posted @ 2017-03-19 23:54 notesbuddy 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Reverse a singly linked list. 阅读全文
posted @ 2017-03-19 22:41 notesbuddy 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Partition List Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You shoul 阅读全文
posted @ 2017-03-19 21:37 notesbuddy 阅读(132) 评论(0) 推荐(0) 编辑