Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
(OP's language was JavaScript) Fixed.
hahaha, i tought the same, its clean but need to fix this by adding the condition before
This comment is hidden because it contains spoiler information about the solution
it's cute oneliner (despite missing .toLowerCase()), but tested against my solution with one loop over a string - it executes 4 times longer (1 milion iterations: 11 sec vs 44 sec under node.js)
Provided tests are inadequate. Some poorly written solutions slip thru.
A test with all capital letters is strongly needed.
did the same, but haven't passed the test b/c of stack overload...
Not a kata issue, replaceAll is not available in all Node's versions.
This comment is hidden because it contains spoiler information about the solution