LeetCode - Intersection of Two Linked Lists(兩個鏈表的交點)
題目描述 給定兩個單向鏈表 headA 和 headB,找出它們的交點。若兩鏈表沒有交點,則返回 None。 定義交點: 交點是指兩個鏈表從某一個節點開始之後的節點完全一致。 範例: 輸入:intersectVal = 8, listA = [4,1,8,4,5], listB = [5,6,1,8,4,5], skipA = 2, skipB = 3 輸出:Reference of ...