Descripition
https://leetcode.com/problems/linked-list-cycle/description/
Solution
1 | /** |
1 - 2 - 3 - 4
\ /
5 - 6
4步
1 - 2 - 3
4 5
4步
1 2
3
3步
1 2
两部
Why don't you come to your senses?
https://leetcode.com/problems/linked-list-cycle/description/
1 | /** |
1 - 2 - 3 - 4
\ /
5 - 6
4步
1 - 2 - 3
4 5
4步
1 2
3
3步
1 2
两部