当前位置: 代码迷 >> 综合 >> leetcode Linked List Cycle II 单链表中的环问题集锦
  详细解决方案

leetcode Linked List Cycle II 单链表中的环问题集锦

热度:68   发布时间:2024-01-14 06:30:01.0

Linked List Cycle

Given a linked list, determine if it has a cycle in it.

Follow up: Can you solve it without using extra space?

如何判断一个单链表中有环?

Linked List Cycle II

Given a linked list, return the node where the cycle begins. If there is no cycle, return null.

Follow up: Can you solve it without using extra space?

如何找到环的第一个节点?

  相关解决方案