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.
You should check for other input types too.
Also, your code will fail for
16
(Power of 4) becauseMath.sqrt(Math.sqrt(16))
-->Math.sqrt(4)
-->2
, but2
is not divisible by 4.As of now, Enumerable Series and Training JS Series have been created. So there's already plenty of tutorial-based katas. You can search them with
tutorial
tag, hence closing this suggestion!OP solved it, closing!
'Looks like you've solved it'
not a kata suggestion
The number of random tests increased.
.
.
Fixed
Raised as an issue.
Amazing solution.
Does this work on 4 digits numbers?
For example digital_root(1234) => 1
There are examples.
Search across "all" languages - there are 59
Loading more items...