diff --git a/linked_lists/finding_intersection.py b/linked_lists/finding_intersection.py index 0b6ccb7..24e8155 100644 --- a/linked_lists/finding_intersection.py +++ b/linked_lists/finding_intersection.py @@ -8,7 +8,7 @@ class Node: self.next = None -def get_intersection_node(self, head_a: Node, head_b: Node) -> Optional[ListNode]: +def get_intersection_node(self, head_a: Node, head_b: Node) -> Optional[Node]: seen_b = set() @@ -23,4 +23,4 @@ def get_intersection_node(self, head_a: Node, head_b: Node) -> Optional[ListNode return head_a head_a = head_a.next - +