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.
In Python, it seems I had the same problem as some others as well: In the random tests, my result was sometimes off by 0.01. This happened a few times, every time on only one of the tests. I was able to pass by attempting a bunch of times though...
JS Translation
python new test framework
This comment is hidden because it contains spoiler information about the solution
Python: Test should use approximate equality (
test.assert_approx_equals
) instead of rounding +test.assert_equals
when comparing floating point numbers [Doc]python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
Scala translation
python new test framework is required. updated in this fork
python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
Rust translation
Description does not mention on how to handle empty arrays. Maybe tests should be fixed to guarantee empty arrays are never generated and explicitly mentioned in the description
Ruby has tests with length 0, but the expected behavior for this case isn't specified in the description.
JS fix: moved to Node v18 and chai, + added missing edge case for empty list
Loading more items...