loading...

Discussion on: Daily Challenge #110 - Love VS. Friendship

Collapse
kespri profile image
kespri

Oh nice! That's better !

I forgot String are a table of Character so you right compactMap is useless.
I have totally ignored emojis because the challenger treat only letter a to z

So thank you for your feedback, your optimisation is truly better 👌

Thread Thread
citizen428 profile image
Michael Kohl

I have totally ignored emojis because the challenger treat only letter a to z

True, but you did add some code to deal with the case were a character may not have an asciiValue, I just offered an alternative to that :-)