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.
wow! pretty good, simple and plain
It works because var is function scoped and not block scoped.
This comment is hidden because it contains spoiler information about the solution
Wow, fr clever
clever usage of var
now that
Array.prototype.sort()
is stable these solutions are correctOur solutions "pair" up nicely, twins if you will. 🤣🤣
Brute force should've been stated in the description of the code, but it does encourage people to write more efficent code.
I initally decided to generate all of the permutations and then give back the next biggest one but tests stopped me from doing that.
This comment is hidden because it contains spoiler information about the solution
ahhh! i was wondering that!
fixed
This comment is hidden because it contains spoiler information about the solution
Like it! Short and easily readable!!
It is based on the original language, so cannot be changed
Loading more items...