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.
Getting the right floating point precision is tricky in some computer programming languages, namely PHP the one I used for this, depending on which ones you're using indeed, there are also some specific modules dedicated for that making it easier like in Python I guess.
Make sure to cast results to a float
In sample test
,missing "{" on first line
Don't worry, translations were really inconsistent, so they'll have to be standarized some day. Done for all, except for Haskell and NASM.
Ok, I'll remove the function declaration of the ones that already have it then.
Sorry, if the point of this kata is to let users declare the function, maybe just a comment mentioning that is better. This kata is really inconsistent :(
Sure.
Yeah, can you do that? I added sample tests.
Some languages have no initial code, should we add it too?
I wouldn't expect users trying to solve this kata (one of the easist on CW) to understand that you get error because the sample tests are not written. This is just poor experience for no gain.
I'll add them. This is poor experience.
But we don't even need sample tests, really...
Many languages still have no sample tests: Groovy, Java, Javascript, Julia and some others.
I just added sample tests. Try again after resetting.
I cannot reproduce this - and there are 629 solves. Are you trying to run sample tests or what? There aren't any sample tests...
Loading more items...