
leetcode快慢指针
文章平均质量分 86
Bryan要加油
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
457. Circular Array Loop[Medium](Leetcode每日一题-2021.08.07)--抄答案
ProblemYou are playing a game involving a circular array of non-zero integers nums. Each nums[i] denotes the number of indices forward/backward you must move if you are located at index i:If nums[i] is positive, move nums[i] steps forward, andIf nums[i原创 2021-08-07 21:13:45 · 264 阅读 · 0 评论 -
142. Linked List Cycle II(Leetcode每日一题-2020.10.10)
ProblemGiven a linked list, return the node where the cycle begins. If there is no cycle, return null.There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, po原创 2020-10-10 21:01:50 · 298 阅读 · 0 评论 -
141. Linked List Cycle(Leetcode每日一题-2020.10.09)
ProblemGiven head, the head of a linked list, determine if the linked list has a cycle in it.There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used原创 2020-10-09 21:59:17 · 751 阅读 · 0 评论 -
287. Find the Duplicate Number(Leetcode每日一题-2020.05.26)
ProblemGiven an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, find the duplicate one.Example1Input: [1,3,4,2,原创 2020-05-26 23:03:20 · 313 阅读 · 0 评论 -
142. Linked List Cycle II&面试题 02.08. Linked List Cycle LCCI
占坑原创 2020-05-06 23:26:10 · 244 阅读 · 0 评论 -
876. Middle of the Linked List(Leetcode每日一题-2020.03.23)
ProblemGiven 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 second middle node.Note:The number of nodes in the g...原创 2020-03-23 19:48:37 · 223 阅读 · 0 评论