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
Published at
2026-10-09 12:07:31 UTCEvent JSON
{
"id": "84d0c40934185c33b15d7231d8e47e10675594357f76b52f5f516b33adc806d8",
"pubkey": "e68a0856e90d9997b1f721e905249896412dd570399a987b2e8fd5e7fcfe2279",
"created_at": 1791547651,
"kind": 1,
"tags": [
[
"t",
"ll009"
]
],
"content": "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.\n\nReturn their sum as a list in the same format.\n\n(CtCI 2.5)\n\nTry to answer before you open the reply.\n\n#ll009 · LL-009-Q1",
"sig": "e32fc8f759900b7d9f1c133cd7438fc2bdcc114272e74ed4d10bfb36364769a08bfb8130d0645e86f76e2421cafbb89e6ed67943d8006af0e87d5212f572e39d"
}