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.
I thought so too at first, but I understood the concept of it better. A does indeed gain $5 more since they all have to pay $15 and he ate food worth $20. C loses $5 since he only ordered $10 worth
Fun Kata, thanks
This comment is hidden because it contains spoiler information about the solution
Тут требуется явного указания значения числа pi, или берется стандратное 3.14 или из модуля math
rejecting as C does not have closures, and this makes the task inherently impure :(
moreover, only one instance could work at a time.
Enabled in this fork
Kata uses rounding a strict equality on floats. Should use no rounding an fuzzy comparisons.
Enabled in this fork
Approved
OCaml translation (author gone)
The precision issues should be fixed, to some extent, some time ago. Returned value is specified to be rounded to integer, and all existing languages seem to enforce and test this requirement correctly. I fixed some random ranges so they do not produce inputs which result in precision loss when squared.
The requirement of rounding and returning as a formatted string can still be argued (and eventually changed), but at least the precision bugs should not be there anymore.
This should be fixed.
Should be fixed.
Should be fixed.
Fixed in your fork.
Loading more items...