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 Scrabble Score from Apr 09 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 Scrabble Score
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.
A variation on №5 I enjoyed was translating the string into another string in any base 11 through 16 as it shows an interesting equivalence of a one-to-one mapping from a single character to a single character without changing type before reduction. See on JavaSript track :
This is another good example where building the lookup table at compile time makes sense. In one of the previous 48in24 videos you featured a Nim solution that did this. If you have time, it would be great to show that you can also do that in modern C++ in a very readable fashion. Here’s one example:
Edit: The constexpr on line 35 makes sure that this can really happen at compile time.