Update finding_intersection.py

This commit is contained in:
marina 2023-08-07 15:47:08 -07:00 committed by GitHub
parent e06d9fbbf6
commit 08a29ececf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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