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.
It's not a reversed number, it's a number with its digits rearranged.
Maybe 1210 instead of 1021, send the 0s to the end perhaps. If I understood correctly, the reversed number should be the largest possible...?
/
The output should be int.
Anyone who has solved the kata can see your code if you post in discourse. This kata is almost 8 years old and has over 64k solves in javascript. The chance that someone will find a bug in the kata at this point is extremely small (but not impossible, I guess). In this case, it's pretty simple to look at the test cases and see what the test actually expects your function to return.
No, it's the other way around, and you can convert one into the other, why do you say you can't?
there are problems with test#4 and test#5
2110 cannot be converted into 1021
and 987654321 into 123495678