Skip to content

🟢 Port problem 58 (Length of Last Word) from TypeScript to C++23 - #27

Open
AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-0058-length-of-last-word
Open

AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-0058-length-of-last-word

Conversation

@AF2B

@AF2B AF2B commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Converts typescript/lengthOfLastWord.ts to C++23 at solutions/0001-0100/0058-length-of-last-word/.
  • Uses a single backward scan instead of trim+split, avoiding the intermediate substrings.
  • Removes the now-converted typescript/lengthOfLastWord.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/lengthOfLastWord.ts with
solutions/0001-0100/0058-length-of-last-word/. Uses a single backward
scan instead of trim+split, avoiding the intermediate substrings.
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