python icon indicating copy to clipboard operation
python copied to clipboard

Add approach docs for the Word Count exercise

Open Yrahcaz7 opened this issue 4 months ago • 1 comments

A while ago, I worked through the Word Count exercise and found the varied approaches interesting. Now that I have the time, I propose adding approach docs for the following approaches:

  • A manual iteration approach with a variant that uses itertools.chain() for performance
  • A str.maketrans()/str.translate() approach, with variants for manual looping vs collections.Counter
  • A re.split() plus collections.Counter approach
  • A re.findall() approach, either as its own doc or as a variation of the previous one

The iterations of my solution roughly correspond to each approach/variation in this list.

I would be happy to draft up a PR for this after some details are decided upon (such as one unified regex approach doc vs separate re.split() and re.findall() ones).

Yrahcaz7 avatar Aug 01 '26 18:08 Yrahcaz7

Hello. Thanks for opening an issue on Exercism 🙂

At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.

This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!

If you're interested in learning more about this auto-responder, please read this blog post.

github-actions[bot] avatar Aug 01 '26 18:08 github-actions[bot]