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 dfa3459 commit a7808fbCopy full SHA for a7808fb
python/002_Add_Two_Numbers.py
@@ -51,7 +51,7 @@ def addTwoNumbers(self, l1, l2):
51
l2 = l2.next
52
curr.next = ListNode(val % 10)
53
curr = curr.next
54
- carry = val / 10
+ carry = int(val / 10)
55
if carry > 0:
56
curr.next = ListNode(carry)
57
return head.next
0 commit comments