Skip to content

Commit

Permalink
Update add-two-numbers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Jan 24, 2018
1 parent ee77bd0 commit 854da16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/add-two-numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def addTwoNumbers(self, l1, l2):
if l2:
val += l2.val
l2 = l2.next
carry, val = val / 10, val % 10 # val = val//10 if python 3
carry, val = divmod(val, 10)
current.next = ListNode(val)
current = current.next

Expand Down

0 comments on commit 854da16

Please sign in to comment.