
LinkedList
这个昵称有十五个字不信你数数
我有点可爱哈哈哈哈哈哈哈
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[LeetCode] 143. Reorder List
Given a singly linked listL:L0→L1→…→Ln-1→Ln, reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→… You maynotmodify the values in the list's nodes, only nodes itself may be changed. Example 1: Given 1->2-...原创 2020-01-05 19:39:57 · 139 阅读 · 0 评论 -
[LeetCode] 61. Rotate List
Given a linkedlist, rotate the list to the right bykplaces, wherekis non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = 2 Output: 4->5->1->2->3->NULL Explan...原创 2019-12-29 11:13:55 · 130 阅读 · 0 评论