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.
Stimes they change the tests for kata.
I tried this and I got an error. Strange.
I've done the same thing ;)
--2n vs n. Not exponential, but it's still looping through the list twice instead of just once.--
Edit: Nevermind. Not thinking straight this afternoon (mild aphasia).
I think actually the trick way has the some time complexity with the simple length way.
However, it's a clever solution.
brilliant
You are welcome.
awesome kata, it help me a lot on understanding monad.
Found function defined inside function is really a sharp razor when dealing with complicate logic like such kata.
Anyone else have the same feeling?
so clever, my solution use array with order 1 - 1000. But simply ordering from 1000 to 1, simplify so much thing.
This comment is hidden because it contains spoiler information about the solution
very elegant code, impressive
I learned a lot about reduce from the famous paper why functional programming matters. It's really a awesome paper.
The reduce in js and this kata is somehow not exactly the reduce explained in the paper.
clever!!!
This comment is hidden because it contains spoiler information about the solution