Relative Content

Tag Archive for c++listpointers

Why isn’t my list adding the final node after the carry?

I am currently attempting to answer the question Add Two Numbers from leetcode, my solution seems to function as I expect however in cases where my final carry int is needed it is not added to the end of my list in the final if statement.

Why isn’t my list adding the final node after the carry?

I am currently attempting to answer the question Add Two Numbers from leetcode, my solution seems to function as I expect however in cases where my final carry int is needed it is not added to the end of my list in the final if statement.