
链表删除
文章平均质量分 53
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 237. Delete Node in a Linked List(删除链表中的一个节点)
原题网址:https://leetcode.com/problems/delete-node-in-a-linked-list/ Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linke原创 2016-04-06 06:48:23 · 558 阅读 · 0 评论 -
LeetCode 203. Remove Linked List Elements(删除链表元素)
原题网址:https://leetcode.com/problems/remove-linked-list-elements/ Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, v原创 2016-05-04 07:28:07 · 464 阅读 · 0 评论 -
LeetCode 83. Remove Duplicates from Sorted List(删除重复节点)
原题网址:https://leetcode.com/problems/remove-duplicates-from-sorted-list/ Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, r原创 2016-05-22 05:36:09 · 503 阅读 · 0 评论 -
LeetCode 82. Remove Duplicates from Sorted List II(删除链表中的重复节点)
原题网址:https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original原创 2016-05-22 05:32:45 · 707 阅读 · 0 评论