loading

Add Two Numbers — Step-by-Step Visualization

mediumLeetCode #4Linked ListMath

Two linked lists store digits of non-negative integers in reverse order. Add them and return the sum as a linked list. Use a dummy head and a carry variable — iterate until both lists and carry are exhausted.

Related Problems