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.
I've tested the stub code
return ""
and my solution, but this error is not producible, closing as of now. Do reraise a new issue if you find such cases.Very interesting approach; thanks. The downside is that you are recalculating progress and rank every time you access them, though this would make sense if you expect to access them less often than you increase them. (Also probably negligible performance implications in practice anyway.)
Wow, great !
I don't know the std library, then... xD
well the logic they are using here is that "number of time each digit should be multiplied to itself = number of digits in the input"
did you rewrite the funcion call?
this happens to me when I do that and forget to export the function.
Hello !
The TypeScript tests are invalid, when I test my solution it replies:
7^1 == 7 (power 1, because it has 1 digit), so it is a narcissistic number, and 1654 doesn't exist in any example (not in description, and in sample tests there is only 1634, which is same as 1^4 + 6^4 + 3^4 + 4^4).
Even if you were right, you should provide more information why they aren't, and why this is an issue. Currently it isn't.
But 7 is a narcissistic number? I also cannot see the 1654 being used as an example anywhere, where do you see it?
The examples 7 and 1654 aren't Narcissistic numbers.
Array.prototype.splice(index, nbItemsDelted)
might help you a lot !