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 correct
Array.prototype.sort()
Our 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.
ahhh! i was wondering that!
fixed
Like it! Short and easily readable!!
It is based on the original language, so cannot be changed
Loading collection data...
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...