mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Fix
This commit is contained in:
parent
b3304eb0fd
commit
81d2d511d8
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user