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.
Haskell translation
Since other languages may not have an equivalent to Python's
Decimal
, I've updated the description to be a bit more language-agnostic for non-Python solutions by having the return type be a tuple of(whole, hundredths)
. This seems like a fair compromise that satisfies the precision for monetary values.Why is it a soviet abacus ?
apparently you switched to
Decimal
s, but this is not indicated anywhere; the tests crash when i return afloat
:unsupported operand type(s) for -: 'float' and 'decimal.Decimal'
you should :
Decimal('12.11')
; the precision will be exactThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
most likely, there is an error in the compatibility of numpy and decimal. they give different answers. I'll try to come up with something, but for now I can only advise not to use numpy in solving this kata
Hello. No, it's a bug. I didn't think through that someone would use numpy. Thanks for the information, I will try to fix the problem in the near time
This comment is hidden because it contains spoiler information about the solution
It's a little bit weird but OK
You have to read things on recursion. If you want a book, "The Recursive Book of Recursion" is a beginner friendly one.
This comment is hidden because it contains spoiler information about the solution
Fixed. Thanks
I could write in my native language, but it would be even more difficult to understand. I apologize for the crooked translation :)
Loading more items...