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.
but why is it happening?
This comment is hidden because it contains spoiler information about the solution
this is really intresting. if you have complete the primer question.
you can try to decrease your complexity, it will get pass the test.
the primer question code may only pass half of test cases.
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 comment is hidden because it contains spoiler information about the solution
@Insisted: Yes, and that's why I told there was no trick required.
when I see his code, I can't stop laughing.
This comment is hidden because it contains spoiler information about the solution
you may have some problem like me.my error is about precision.
you may pass some case,but some are error.
when you compute 2 ** 0.5 , you should improve precision.
for example, may a num is 10.0001 , it will become 9.9998,when you change float to int,
it will be 9 instead of 10.
That's a problem with your code, not a kata issue (you can see my solution, there is no trick required). And please, mark your post as having spoiler content next time.
This comment is hidden because it contains spoiler information about the solution