'alr approved some time ago'
Lovely way to do it, concise and functional. It's very educational to see the use of "unknown" here too, thanks! <3
Print the input, your code removed the first "aa".
my code passes every test except this:
'a aa a aa' should equal 'aa a aa a aa'
But there is no consecutive duplicate word, so the code should return the same string.
Did I miss something? Maybe anyone can help?
Thanks in advance!
Welcome & ty
You may find some bits of information here: https://github.com/codewars/codewars.com/wiki
Sorry, I am still learning how to use the site properly. Will need to look into guidelines more.
this is mutating the input. Bad practice...
true, but use the spoiler flag, next time. ;)
This comment is hidden because it contains spoiler information about the solution
This kata reveal regex in the utmost extent. Really productive lesson.
Oh! I Just Love You!, e.mihaylin.
On almost every kata you teach me something very clever!