Skip to content

Commit 9a68f68

Browse files
authored
Update comment to clarify the inputs and output structure
1 parent e47ba65 commit 9a68f68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Medium/sum-of-linked-lists.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
# SUM OF LINKED LISTS
33

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+
48
# This is an input class. Do not edit.
59
class LinkedList:
610
def __init__(self, value):

0 commit comments

Comments
 (0)