Problem 445 · Medium

Add Two Numbers II

Add two numbers stored as linked lists whose most significant digit comes first, returning the sum in the same format. The visual pushes digits onto stacks, then pops them while carrying and builds the result from the front.

Open the interactive visualisation