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.
Lua translation!
Lua translation!
python new test frameworks
Lua translation !
Groovy Translation
Please check and approve!
Scala translation
Is it possible to contact the author? My solution does not pass the tests, although the function return result is expected.
Or can someone tell me what the problem is?
python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
Javascript incorrect usage of it and describe blocks.
Actual and expected are swapped in C#
Description should be language-agnostic
The description, or I'd rather say, the problem is not entirely correct.
For example, let's take the example we have only one stone. According to the existing conditions, it would take only 2 steps to go across and over.
In reality, there are 4 steps:
(across)
(back)
shore - stone - 1 step
stone - other shore - 1 step
Total: 4 steps.
As it is, the problem does not count the steps from the shore to the first stone.
Description should be language-agnostic
Possibly, there is inaccuracy in tresting.
One of random tests didn't pass:
STDERR
Traceback (most recent call last):
File "tests.py", line 25, in
test.expect(abs(expected[1]-actual[1])/expected[1] < 1e-10, "Relative error for compound interests should be less than 1e-10: {} should be near {}".format(actual[1], expected[1]), allow_raise=True)
ZeroDivisionError: division by zero
Loading more items...