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.
Mednoob is correct. I'm marking this as resolved.
Looking at the tests, I can assure you that it accepts your answers. I think it's because
then
in your result. It should bethan
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I can't see your current algorithms, but if you are taking
n = b-a
square roots, then, yes, there is a faster way. In that case, if you think more carefully about what is needed to solve the problem, you can probably find a simple way to speed things up without changing your algo very much.I am using math.sqrt to check for perfect squares. Is there a less time consuming approach?
I have passed all the tests but not the attempt session.