This issue is a discussion for contributors to collaborate in getting ready to be featured in 48in24. Please refer to this forum topic for more info.
We will be featuring Acronym from Feb 27 onwards.
Staff jobs
These are things for Erik/Jeremy to do:
☐ Check/update exercise in Problem Specifications
Create + schedule video
Community jobs
For each track:
Implement Acronym
Add approaches (and an approaches introduction!) for each idiomatic or interesting/educational approach.
Add video walkthroughs (record yourself solving and digging deeper into the exercise).
Highlight up to 16 different featured exercises (coming soon)
Existing Approaches
You can use these as the basis for approaches on your own tracks. Feel free to copy/paste/reuse/rewrite/etc as you see fit! Maybe ask ChatGPT to translate to your programming language.
This is maybe a variant on “iterate and keep track of previous char”? It does a string replace, a split on space chars, and then selects the first char of a word by string index:
There is also a solution in Python that we are including in our approaches doc. It uses only re.sub(). It’s slower than any other, but different from the solutions that match and iterate. It does use a word boundary, so is probably a variant of “Regex match with word boundary anchor” It also uses a positive lookbehind for the _ characters. It does overfit, so might not be the best to feature:
NICE! Wow. Thank you for shortening and simplifying that! I will use that one instead in the approach. I am always surprised by what small tweaks can do in regex (and often bewildered by how there are 10million ways to do something).