Problem 1634 · Medium

Add Two Polynomials Represented as Linked Lists

Two pointers walk both term lists in descending power order, merging equal powers and dropping zero sums.

Open the interactive visualisation