Fix type hint

This commit is contained in:
Hardik Pawar 2024-10-03 11:33:17 +05:30
parent 42a1f27126
commit b3304eb0fd

View File

@ -20,7 +20,7 @@ class Node:
self.next: Node | None = None
def get_middle(head: Node) -> Node:
def get_middle(head: Node | None) -> Node | None:
"""
Find the middle node of the linked list using the slow and fast pointer technique.