Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Process both linked lists at the same time
If the current power of the two heads is equal, add this power with the sum of the coefficients to the answer list.
If one head has a larger power, add this power to the answer list and move only this head.