This commit is contained in:
Hardik Pawar 2024-10-03 11:34:21 +05:30
parent b3304eb0fd
commit 81d2d511d8

View File

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