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.
Why the functions applied to a list changes the address of elements in it?
I am trying to implement Huffman code encoder in C++: