Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEA
I was unable to get the exact answer the original poster got, but I believe that's because their solution didn't account for title case vs. lowercase versions of the same word.
Regex and counting
Hi,
I was debugging my result for the word "The" ,and I found out that i was converting the word to uppercase which was not present in your solution. Due to which your solution counts the word "the" separately for different cases(Upper,Lower and title). Attached is the workflow.
Without converting to the same case,
After converting to same case,
The word "THE" will have a count of 79809
This was a really awesome exercise and I request you to post many more challenging scenarios like this.
Thanks,
Mohith