Linked list sorting (?)

This commit is contained in:
2023-10-21 08:23:14 -04:00
parent 3f369e1e70
commit 337a795ad0
5 changed files with 76 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
import typing
class ListNode:
"""ListNode is the leetcode "standard library" type used in linked lists"""
def __init__(self, val=0, next: typing.Optional["ListNode"] = None): # no qa
self.val = val
self.next = next