Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 28ddde6

Browse filesBrowse files
committed
Update
Update
1 parent 8aa50a3 commit 28ddde6
Copy full SHA for 28ddde6

File tree

1 file changed

+8
-3
lines changed
Filter options

1 file changed

+8
-3
lines changed

‎Python3/002_Add_Two_Numbers.py

Copy file name to clipboardExpand all lines: Python3/002_Add_Two_Numbers.py
+8-3Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ def addTwoNodes(self, n1, n2):
5555

5656

5757
if __name__ == "__main__":
58-
list = ListNode(9)
59-
list.next = ListNode(8)
60-
print(Solution().addTwoNumbers(list, ListNode(1)).myPrint())
58+
list = ListNode(2)
59+
list.next = ListNode(4)
60+
list.next.next = ListNode(3)
61+
list1= ListNode(5)
62+
list1.next = ListNode(6)
63+
list1.next.next = ListNode(4)
64+
65+
print(Solution().addTwoNumbers(list, list1).myPrint())

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.