LeetCode 141. 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?
经典题, 使用快慢指针.
1 | /** |
题目描述:
Given a linked list, determine if it has a cycle in it.
Follow up: Can you solve it without using extra space?
经典题, 使用快慢指针.
1 | /** |