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 has been deleted.
Same here! I'm used to Python and just finished a Java crash course. Went straight here so I could learn all the different methods I could use.
omg
What is regex? I probably sound like a noob...
Genius! I took like so much longer to get this right, using if statements and stuff.
EYYYYYYYYYYY!
not readable, not reccomended
Nice ,short, and clean code congratulation !!
This comment is hidden because it contains spoiler information about the solution
perfect examples of a simple problem solved with something that is really not worth trying to understand
This solution uses two loops (filter and sum) instead of one for loop in the traditional one. So yes, in the terms of performance this is definitely not the best solution.
Nice solution but mine better haha :)
yes. There are so intelligent people.
nice move dude
Can someone please explain why this solution is most voted as Best Practices? it's a concise one-liner but I thought loop-based solution might be more appropriate.
Loading more items...