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.
It seems that currently there is no way to avoid the use of
try
/except
in at least one of the functions.This is definitely not expected and should be mentioned in the description.
The tests do rounding to check if the returned value is close enough to the expected value, but the anti-cheat check doesn't, which causes false positive.
Lots of existing solutions, including author solution, fail at certain combination of values by division by zero. These edge cases should be tested as fixed tests.
Looks like you are cheating
(18 times) without arithmetic operators (and withoutimport
).What else is forbidden?
Should be specified in description.
Ranges of tested values should be clearly specified. For instance, the reference solution does not work for
multiply(0, 1)
but it works formultiply(1, 0)
.There appears to be no enforcement of the rule.