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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
I added random tests
Try reading
this article
P.S. instance variable is not faster, it has wider scope
look here
Hi,
without @ sign 'nums' will be a local variable and will be empty each function call.
But with @ it becomes instance variable and memoizing this slow expression there.
This comment is hidden because it contains spoiler information about the solution
Thanks, i'll do like that next time.
It's wrong solution. scan /\d{5}/ doesn't give all combinations
There is no sense to use in-place sorting