mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-24 23:49:47 +00:00
Fix type hint
This commit is contained in:
parent
42a1f27126
commit
b3304eb0fd
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user