1171从链表中删除总和值为0的连续节点 Posted on 2020-04-19 Words count in article: 867 | Reading time ≈ 3 1171. 从链表中删去总和值为零的连续节点下面是题目,需要注意的是,题目说的是总和为0的连续结点下面是题目给出的模板1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * ... Read more »
82删除排序链表中的重复元素2 Posted on 2020-04-19 Words count in article: 680 | Reading time ≈ 3 82. 删除排序链表中的重复元素 II下面是题目 下面是题目给出的模板1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode ... Read more »
92反转链表 Posted on 2020-04-19 Words count in article: 631 | Reading time ≈ 2 92. 反转链表 II下面是题目 下面是题目给出的代码模板1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; ... Read more »
61旋转链表 Posted on 2020-04-19 Words count in article: 372 | Reading time ≈ 1 61.旋转链表下面是题目 下面是题目给出的模板1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ... Read more »
148链表排序 Posted on 2020-04-19 Words count in article: 224 | Reading time ≈ 1 148. 排序链表下面是题目下面是题目给出的代码模板1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ... Read more »
147链表插入排序 Posted on 2020-04-19 Words count in article: 261 | Reading time ≈ 1 147.链表插入排序下面是题目下面是题目给出的模板1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ... Read more »
86分割链表表_大小分隔 Posted on 2020-04-19 Words count in article: 499 | Reading time ≈ 2 86.大小分隔下面是题目 下面是题目给出的模板1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ... Read more »
109有序链表转换二叉搜索树 Posted on 2020-04-19 Words count in article: 418 | Reading time ≈ 2 109. 有序链表转换二叉搜索树 下面是题目给出的模板12345678910111213141516171819202122/** * Definition for singly-linked list. * struct ListNode { * int val; * L ... Read more »
21合并两个有序链表 Posted on 2020-04-19 Words count in article: 338 | Reading time ≈ 1 21. 合并两个有序链表 该很简单,但是如何写的优雅呢? 这是leetcode给出的默认代码 1234567891011121314/** * Definition for singly-linked list. * struct ListNode { * int val; * ... Read more »