定义 快慢两个指针,慢指针指向头部,快指针指到第二位。 ListNode slow = head; ListNode fast = head.next;. 定义int i, 开启while循环,当快指针 ...
確定! 回上一頁