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.
Works as requested. But note that this would not work for languages other than english, because then it is not about adding a "s" to make the plural. So making it able to work with italin, spanish or other languages would make necessary to reimplement the formatUnit.
I don't get something. Can somebody explain me why "if (maxWithDigits(i) === mx)"? By doing this you are searching for the max number, but actually what we want is to find the first number (minimum), higher than n, using the given digits.
Brilliant
One of the nicest solutions, IMHO
Very nice approach
This comment is hidden because it contains spoiler information about the solution