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.
easier to understand, and does the same thing as the first solution!
@JSNoob123 This solution also matches for spaces that are in the string as well as punctuation with the + sign.
This problem only took me 30 minutes compared to other problems which take me way longer. Why is this a 5th kyu problem?
This comment is hidden because it contains spoiler information about the solution
You make me want to solve every string problem with a regular expression, because you create something as beautiful as this.
This comment is hidden because it contains spoiler information about the solution
I almost have the same solution, but I forgot about those unary operators. It was clever of you to use a unary operator in your reduce method to convert the strings to numbers.
Great answer!
Your code is also iterating through the array twice with a reduce method which is a for loop. and also your second for loop as well.
I did the same thing!
There is no way I'm reading all of this! My brain will turn to mush!
I use a while loop in my solution.
really clever!
I figured out too!
I'm finally getting the hang of this stuff. This is what I did.
Loading more items...