摘要:
单链表的操作 阅读全文
摘要:
203. Remove Linked List Elements Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 阅读全文
摘要:
141. Linked List Cycle Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 快慢指针 阅读全文
摘要:
21. 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 the nodes of th 阅读全文
摘要:
83. Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1- 阅读全文
摘要:
206. Reverse Linked List Reverse a singly linked list. Hint: A linked list can be reversed either iteratively or recursively. Could you implement both 阅读全文
摘要:
237. Delete Node in a Linked List 思路:用node节点的下一个节点来覆盖node节点,然后删除node的下一个节点 阅读全文
摘要:
函数传值 例1: 例2: 阅读全文