摘要: 题目链接 题目要求: Given 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 @ 2015-06-26 17:53 峰子_仰望阳光 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.Remove Duplicates from Sorted List 题目链接 题目要求: Given a sorted linked list, delete all duplicates such that each element appear onlyonce. For ex... 阅读全文
posted @ 2015-06-26 16:13 峰子_仰望阳光 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 此题扩展:链表有环,如何判断相交? 参考资料: 编程判断两个链表是否相交 面试精选:链表问题集锦 题目链接 题目要求: Write a program to find the node at which the intersection of two singly linke... 阅读全文
posted @ 2015-06-26 15:46 峰子_仰望阳光 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co... 阅读全文
posted @ 2015-06-26 15:07 峰子_仰望阳光 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.Merge Two Sorted Lists 题目链接 题目要求: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together t... 阅读全文
posted @ 2015-06-26 11:40 峰子_仰望阳光 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Given a singly linked listL:L0→L1→…→Ln-1→Ln, reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nod... 阅读全文
posted @ 2015-06-26 00:14 峰子_仰望阳光 阅读(236) 评论(0) 推荐(0) 编辑