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 is because first two items are checked before the for loop
This comment is hidden because it contains spoiler information about the solution
Good point, I guess I was looking that the basic tests down below and got carried away.
This comment is hidden because it contains spoiler information about the solution
Why do you return the string instead of
false
?This comment is hidden because it contains spoiler information about the solution
does dividing by two force the common difference to two?
That's because of JS's limitation on amount of arguments you can pass to a function though.
Also, there are no performance requirements here, so I'd go for the shorter (and cleaner) code ;-)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
.
This code has had the fastest run-time of all the solutions I've tested so far. Good Job.
Nvm, I figured it out. I was understanding the problem all wrong. Thanks for point that out to me :)
The title of this challenge is "Convert number to reversed array of digits" and the instructions say "You have to return the digits of this number within an array in reverse order." My code returns the numbers in the array in reverse order. Is that not what the challenge wants? If not, then you are right, I don't understand what it is asking.
HI can you tell me how to use this website
Loading more items...