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
Lua Translation
Sometimes my submission (using Python 3.11) is accepted, and sometimes the same submission fails. Here is one that failed:
beeramid(111, 3.7)
It reports it should be 3, but 4 (in my answer) = 111.
It happens whether I round the cost at each step to 2 decimal places or not.
rownum: 1
cumulativecost: 3.7
rownum: 2
cumulativecost: 18.5
rownum: 3
cumulativecost: 51.8
rownum: 4
cumulativecost: 111.0
So how is the expected answer 3 not 4? That sounds wrong to me.
C++ translation ready. Please review.
Lua translation !
Prolog test cases seem to be broken. The integer value assigned to Result somehow gets converted into an array with duplicate members so you get error messages like
In java, random tests fail on the precision of the return value: java.lang.AssertionError: expected:<639576.6666666666> but was:<639576.6875>
Java translation
CoffeeScript translation
CoffeeScript translation fork
The name type must be string, not any.
Please remove the instruction that the function should have a default parameter. That is simply not true and inaccurate. Can definitely be confusing for someone learning how to code and looking for a reason to add a default parameter.
F# translation added, please review
Reviewing tests allows you understand why some of your cases fail, but it would be great if description mentioned these cases... What a nice way to waste your time...
Elixir translation added
Loading more items...