← All problems
Add Two Numbers
Two numbers as reverse-order linked lists; return their sum as a list.
Complexity
Time O(max(n,m)), Space O(max(n,m)) for output
Common pitfalls
- Dropping the final carry
- Assuming equal lengths
Your solution
Log in to save your code and track progress.