Skip to content

🟢 Port problem 242 (Valid Anagram) from Swift to C++23 - #17

Open
AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-0242-valid-anagram
Open

AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-0242-valid-anagram

Conversation

@AF2B

@AF2B AF2B commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Converts swift/242.swift to C++23 at solutions/0201-0300/0242-valid-anagram/.
  • Keeps the general hash-map approach and adds a fixed 26-slot count-array optimized version (valid given the problem's lowercase-English-letters constraint).
  • Removes the now-converted swift/242.swift.

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 swift/242.swift with solutions/0201-0300/0242-valid-anagram/,
keeping the general hash-map approach and adding a fixed 26-slot
count-array optimized version (valid given the problem's lowercase
English letters constraint).
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