Skip to content

🟡 Port problem 2 (Add Two Numbers) from TypeScript to C++23 - #30

Open
AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-0002-add-two-numbers
Open

AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-0002-add-two-numbers

Conversation

@AF2B

@AF2B AF2B commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Converts typescript/addTwoNumbers.ts to C++23 at solutions/0001-0100/0002-add-two-numbers/.
  • Builds the result list directly while summing with carry in one pass, instead of staging both lists through intermediate arrays first.
  • Removes the now-converted typescript/addTwoNumbers.ts.

Base is chore/cpp23-migration (#4) — retarget to main once that lands.

Test plan

  • Verified locally with a standalone compile + assertions.
  • CI (build & test, static analysis, format check) passes.

Replaces typescript/addTwoNumbers.ts with
solutions/0001-0100/0002-add-two-numbers/. Builds the result list
directly while summing with carry in one pass, instead of staging
both lists through intermediate arrays first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants