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.
Yeah, you definitely should only submit the best possible code in 8 kyu katas, or else all your future employers will see them and find out how bad of a programmer you are.
Almost same as mine, thought I went for a helper function. I feel like it's more readable this way once you come back to your code after a few months, easy to grasp what's going on.
Clever as hell!
Surely in production code this isn't best practice?
Hardly readable
For sake of practicing filter I used .filter 6 times as well, but this could be done better with just an if/else one iteration.
I had no idea that slice floors the result! Very informative, thank you!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Very easy to read actually
One of worst descriptions ever.
This comment is hidden because it contains spoiler information about the solution
I was going to use .reduce as well but this seems more efficient to me.
Loading more items...