mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +00:00
Fix
This commit is contained in:
parent
b3304eb0fd
commit
81d2d511d8
|
@ -20,7 +20,7 @@ class Node:
|
||||||
self.next: Node | None = None
|
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.
|
Find the middle node of the linked list using the slow and fast pointer technique.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user