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 tripped me up too. While it's true the initial number was considered in the description, I also didn't interpret it that way. No worries.
In the future, look at the top of the page where you can see that more than 900 guys passed the kata. If a test was wrong somebody would have seen that, no?-)
Sorry for misunderstanding. I've missed the word "greatest". Thank you.
There are no error in the tests, sorry. How do you have negative numbers?
Same problem :/
Hello, can you please fix test cases.
Wrong :
testing(MaxRotate.maxRot(38458215), 85821534);
Right answer is - 85254183
Print the input.
This comment is hidden because it contains spoiler information about the solution
Sure, it's there, but it's very easy to miss. No harm in making it more clear, right?
Look at the example in the description:
You clearly see that the initial number
56789
is considered.I think the description should changed to explicitly state that your code should consider "n" itself when returning the largest number. It's very frustrating to write a solution that passes all of the initial tests, and then fails on some of the random tests - especially for newer programmers.