Join Nostr
2026-10-09 12:07:31 UTC

codementor on Nostr: Question: Two numbers are stored as linked lists, one digit per node, with the ones ...

Question: Two numbers are stored as linked lists, one digit per node, with the ones digit first. 3 → 4 → 8 is 843 and 9 → 6 is 69.

Return their sum as a list in the same format.

(CtCI 2.5)

Try to answer before you open the reply.

#ll009 · LL-009-Q1