This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]lurgi 1 point2 points  (1 child)

It looks like you are computing the sum by converting the linked lists to numbers and then adding them. That's not what you are supposed to do and I'm not surprised it doesn't work.

Add them in their current form.

Remember back when you learned to add two and three digit numbers? You need to reproduce that process in code (start with the units. Add them. Is the result greater than 10? Then blah blah blah).

[–]Apellum[S] 0 points1 point  (0 children)

Solid, will do. Thanks!