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.
Well, that's how every
BigInteger/Decimal
class/module in many languages work.If you want to pass an exact value into their constructors, you gotta pass it in as a string.
This comment is hidden because it contains spoiler information about the solution
I guess he passed in the argument like this and so it didn't work:
???
This comment is hidden because it contains spoiler information about the solution
Good pick. The problem comes from Python (same with Ruby) conversion of "float" to "rational". I changed my solution and re-published it to get correct results but I suppress the case (1.85, 60) in order not to invalidate all the already passed solutions. With Python (and Ruby) Fraction(1.85) is (4165829655317709, 2251799813685248) instead of (37, 20)... Thanks for your post!
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
whoops. I thought anyone with access to this page has already solved the kata. I'm new, sorry :(
I don't think bootkeen is wrong. The fact that the author's solution gives 6.10 means something is clearly wrong. 36 guys passing the test means the error is likely not in the algorithm, but in the internal data handling.
spoiler flags, please! (visible from the dashboard!)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution