mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 06:46:18 -04:00
Update finding_intersection.py
This commit is contained in:
parent
e06d9fbbf6
commit
08a29ececf
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue