FAL Python在风控模型机器学习中的应用
向型双指针(快慢指针)
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
}}