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.
Suggestion: In the Python version, put a comment next to
@countcalls
telling users not to delete this line. If they do, they get a mysteriousreplicate.reset
error, because of how the hidden tests have been implemented.Approved
python new test framework is required. updated in this fork
Random tests have been added some time ago
OP solved it, closing
OP solved it, closing
"design a recursive function"
This comment is hidden because it contains spoiler information about the solution
Can we add this example to the Kata description to make it clearer?
This kata is broken, none of the listed solutions work. replicate.reset() is the culprit.
My python code passes all 5 tests, but I'm getting Exit Code:1
Traceback (most recent call last):
File "main.py", line 15, in
replicate.reset()
AttributeError: 'function' object has no attribute 'reset'
Any ideas why? I'm not calling reset() anywhere in my code?
This comment is hidden because it contains spoiler information about the solution
If you reset the trainer (which will erase your code), you'll see that there's a a decorator
countcalls
applied to thereplicate
function, and it's there for a reason.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...