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.
Why not subtract instead of multiply? Intuitively, it feels like subtraction makes sense to me.
Why not subtract instead of multiply? Intuitively, it feels like subtraction makes sense to me.
This comment is hidden because it contains spoiler information about the solution
I had the same idea but your use of map in tandum with a ternary operator makes it shorter and cleaner.
Beautiful
Why do we have to check for an empty string/array if it states in the description "The string has a length greater or equal to one and contains only letters from ato z.
". I was stuck on this much longer than I should have. I pretty much had the same exact answer except I wasn't checking for an empty string/array because it wasn't explicitly stated to check for an empty string/array. /=
How will it convert all the strings letters to its complimentary letter if it [break] at the first letter it finds to replace? If im not mistaken, doesn't the [break] keyword exit the iteration out of the switch statment and if so how will we find the complimentary letters for the other letters of the input string?
Using .replace() and regex to iterate over a string is clever. Nice.
Why isn't this solution best practice? It seems so simple and straight forward.
This comment is hidden because it contains spoiler information about the solution
Why do I complicate things more than I should. XD
Clean and short but I don't understand where it checks for a capital "R".
This comment is hidden because it contains spoiler information about the solution
Easy to understand. This is the best practice for sure.
exquisite
Loading more items...