
思考:

代码:
ListNode fast = head, slow = head, target = head;
while (fast != null && fast.next != null) {
fast = fast.next.next;
slow = slow.next;
if (fast == slow) {
while (target != slow) {
target = target.next;
slow = slow.next;
}
return target;
}
}
return null;
本文章使用limfx的vscode插件快速发布