黑马博学谷顺风车实战训练营
public boolean fastSlowPoint(ListNode head) {
if (head == null) {
return false;
}
ListNode fast = head;
ListNode slow = head;
while (fast != null && fast.next != null) {
fast = fast.next.next;
slow = slow.next;
// do something
}}