Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #358: Goodbye, Michael! (Part 1)

ZachBowders
メテオール

This was a fun one, I noticed a lot of folks aren't catching the misspellings

CMeyers
アトム

I also got different results .I'm glad it wasn't just me.

CMeyers
アトム

CMeyers_0-1676663132281.png

 

mwinterhack
メテオロイド

Solution (Almost)

BS_THE_ANALYST
マグネター

Nice Challenge. Added an optional RegEx Tokenize method to count the number of words.

スポイラ
BS_THE_ANALYST_0-1676673482214.png

 

sylviayang
メテオール

スポイラ
An interesting one! and we all love Michael. Just noticed my answer is slightly different from the output. 
sylviayang_0-1676673858592.png

 

JereJussila
アステロイド
スポイラ
JereJussila_0-1676887599627.png

 

Here is my solution!

becky-pattinson
メテオール

Interesting challenge, definitely difficult to not "meta-game" this one and manually search for all the possible typos.

I went for a generic regular expression to find all instances where all the characters in "michael" appeared in a the [Character] string and each only appeared once in that string.

 

 

スポイラ
beckypattinson_0-1676893798907.png

Regular Expression:

REGEX_Match([character], "^(?=(?:[^m]*m){0,2}[^m]*$)(?=(?:[^i]*i){0,2}[^i]*$)(?=[^c]*c?[^c]*$)(?=[^h]*h?[^h]*$)(?=[^a]*a?[^a]*$)(?=[^e]*e?[^e]*$)(?=[^l]*l?[^l]*$)[michael]+$")

 

 

leozhang2work
コメット
スポイラ
358.png
Laurap1228
ボリード

Here is my solution - didn't use a join.

スポイラ
Laurap1228_0-1676901911081.png