摘要: 1. 原始题目 Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: beg 阅读全文
posted @ 2019-04-05 19:44 三年一梦 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the seco 阅读全文
posted @ 2019-04-05 16:34 三年一梦 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Example 2: 2. 题目理解 给定一个排序链表,删除所有重复的元素,使得 阅读全文
posted @ 2019-04-05 11:47 三年一梦 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Design your implementation of the linked list. You can choose to use the singly linked list or the doubly linked list. A node in a singly link 阅读全文
posted @ 2019-04-05 10:48 三年一梦 阅读(207) 评论(0) 推荐(0) 编辑