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 comment is hidden because it contains spoiler information about the solution
I love it!
This solution does not work anymore due to comparing a float with an integer of large size.
You can avoid this by removing the division on the left side and multiplying the right side by 4 instead.
what's the name of the formula?
This comment is hidden because it contains spoiler information about the solution
tried to fork, didnt pass all tests
from decimal import Decimal should deal with that, Decimal guarantees true math operations without loss
because math is tough
Noted. Thank you and my apologizes.
Use the spoiler flag when you post hints (or the formula...) to a kata.
This comment is hidden because it contains spoiler information about the solution
just take Range till num and all we be alll right.
great Thinking
or we can just brute force it
Your solution is completely right. Matter of fact, i came up with the similar solution but not all test will pass because of the way python interprets large integers.
Loading more items...