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.
Smart one! ^^
Clever code, cool!
In 'sum' the currentValue is already set to 0 should there be no 'x' or 'y' to add.
While the first if statement is redundant, perhaps it's helpful for readability.
If you initialize your reducer to 0 you don't need to check the array length.
indent your code and that's it, i like your easy to read solution.
Maybe one line in the first if.
This comment is hidden because it contains spoiler information about the solution
no.
you could use str.isupper()
This comment is hidden because it contains spoiler information about the solution
I like that you simply spelled out the sequence A through Z and did the string[i] in z. I could see doing this in other problems of similar nature.
This is easy to read.
Holding out just a little while longer without using regular expressions ;)
This comment is hidden because it contains spoiler information about the solution
Does that account for capital letters as well?
using map (instead of for) is event better ;)
Loading more items...