We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e47ba65 commit 9a68f68Copy full SHA for 9a68f68
Medium/sum-of-linked-lists.py
@@ -1,6 +1,10 @@
1
2
# SUM OF LINKED LISTS
3
4
+# IN THIS SCENARIO, THE HEAD OF THE LINKED LISTS (BOTH INPUT AND OUTPUT) WOULD POINT TO THE LEAST SIGNIFICANT DIGIT.
5
+# SO, 2 -> 6 IS ACTUALLY 62.
6
+# IF INPUTS ARE 2 -> 4 and 1 -> 5, THE OUTPUT WILL BE 3 -> 9 which is correct as 42 + 51 = 93
7
+
8
# This is an input class. Do not edit.
9
class LinkedList:
10
def __init__(self, value):
0 commit comments