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.
ok, thx now i see :). Maybe add some more info...
Reverse numbers go as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 111, 121,..., 717,727, 737,..., 909
100th is 909
i dont get, how from n = 100 you get 909?
I think that javascript has some issue with precision, maybe the creator used a program to generate tests and that program had a precsion problem
JS version:
(expected 212212 to equal '224212.12')
I failed only 1 random test and get this info.
My result is 212212.
Why does it expect to return a decimal?
Try googling palindromic numbers, it might make more sense.
nice kata
I think there is no another way to have comment as spoiler.
Yes flag is for spoiler
Thanks!
I think I've put the spoiler flag, I can see the red flag on the bottom of the comment. Is there another way to mark as spoiler?
I will try to think by another perspective the problem, thanks!
First of all, you need to have spoiler when sharing code sample. Second, this is very basic logic. You need to think by any other perspective rather than optimizng that code. You need to impl. a function that returns nth reverse number rather than loopimg for all numbers
This comment is hidden because it contains spoiler information about the solution