← All problems

Add Two Numbers

Medium linked listsmath LeetCode ↗
Two numbers as reverse-order linked lists; return their sum as a list.

Hints (0/3 revealed)

Log in to reveal hints progressively.

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.