https://leetcode.com/problems/add-two-numbers/
Algorithm
1
2
3
4
5
6
7
8
9
Input: l1, l2
sum ← 0
for l in [l1, l2]
num_list ← all number sequence of l
num ← convert num_list to number
sum ← sum + num
rst ← convert sum to ListNode
return rst
Code
272ms / 27.6MB
PREVIOUSEtc