mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update merge_two_lists.py
This commit is contained in:
parent
8d8b3f7e53
commit
3024f285e5
@ -3,13 +3,13 @@
|
||||
# author: bt3gl
|
||||
|
||||
|
||||
class ListNode:
|
||||
class Node:
|
||||
def __init__(self, val=0, next=None):
|
||||
self.val = val
|
||||
self.next = next
|
||||
|
||||
|
||||
def merge_two_list(list1: Optional[ListNode], list2: Optional[ListNode]) -> Optional[ListNode]:
|
||||
def merge_two_list(list1: Optional[Node], list2: Optional[Node]) -> Optional[Node]:
|
||||
|
||||
if not list1:
|
||||
return list2
|
||||
|
Loading…
x
Reference in New Issue
Block a user