mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 12:16:14 -04:00
Update finding_intersection.py
This commit is contained in:
parent
e06d9fbbf6
commit
08a29ececf
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user