问题:给出一个链表,可能存在环,要求输出环的起点位置
思路:使用Floyd cycle algorithm
具体代码参考:
https://github.com/wuli2496/OJ/tree/master/LeetCode/Linked%20List%20Cycle%20II
问题:给出一个链表,可能存在环,要求输出环的起点位置
思路:使用Floyd cycle algorithm
具体代码参考:
https://github.com/wuli2496/OJ/tree/master/LeetCode/Linked%20List%20Cycle%20II