We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43ddae1 commit d74e318Copy full SHA for d74e318
leetcode/merge-two-array.py
@@ -1,8 +1,8 @@
1
# Definition for singly-linked list.
2
-# class ListNode(object):
3
-# def __init__(self, val=0, next=None):
4
-# self.val = val
5
-# self.next = next
+class ListNode(object):
+ def __init__(self, val=0, next=None):
+ self.val = val
+ self.next = next
6
class Solution:
7
def mergeTwoLists(self, l1, l2):
8
# maintain an unchanging reference to node ahead of the return node.
0 commit comments