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.
This comment is hidden because it contains spoiler information about the solution
I thought the same as you, "What is the point of using already existing functions?". But it depends on what level you are in, if you are a beginner it is much useful and beneficial to do it from scratch, but if you have more experience you don't have to.
Why not? If you have a function from THE STANDARD LIBRARY that can help you solve the problem, why would you create it from scratch?
me either
That's not how it works!!!
I didn't know that you could turn a num negative by using -
"Don't reinvent the wheel" :-)
Thats right
The /../ part of the code represents a Regular Expression (RegEx) that looks for any 2 types of characters. If the length is even, When it comes time to check for the last character (i.e. the underscore) it will not be able to find another character after it, and thus won't add it to the resulting array.
I get confused when the string is even, why the match method doesn't match the underscore character?
This comment is hidden because it contains spoiler information about the solution
Hahahhaha
The exercise is OK, but the instructions definitely needs improvements. Solving this kata requires some guesswork.
This comment is hidden because it contains spoiler information about the solution
My type of solution! (although mine is much, much, much more messy in implementation)
Dont know how best solution of this is marked the one with worse time complexity class...
Loading more items...