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.
cheating? you must be kidding! You should never be rigid in your thinking as a programmer.
it's best to be an outside the box thinker!!!
Why was the kata still on Node 8?
What is happening here?
I would like to know the usecase of this "feature"
I have no idea why it works
O(1) solution
it need not be a consideration. Node 8 is only supported for legacy reasons. if you use
padStart(), the runner will take notice that the kata no longer compiles with Node 8 and disable that version.(besides, Node 8 does support
padStart())This kata allows Node v8.0 which doesn't support
padStartThe numbers are still not zero-padded correctly.
What you're looking for is ...
Better yet, have a numbers with variable length in the random tests (ported from Python / Ruby translations)
padStartis available natively. Why reinvent the wheel?I've created a fork with a fix
(The user attempted in JavaScript.)
In the assumptions:
The actual input:
Something is wrong I guess
Same with js
This comment is hidden because it contains spoiler information about the solution
Loading more items...