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.
C Translation (author inactive).
It would be worthwhile to include handling of edge cases at the beginning of the solution. You need to make sure that the function handles edge cases correctly, such as when a or b is 1.
An example of handling edge cases:
def number_of_sets(a, b):
If we're evaluating continued fraction, why isn't the returned value a
Fraction
?I've come up with a solution (python) that seems to work for this problem, I pass the test phase but when I do the attempt, it fails seemingly randomly with this error :
The tests are then completly stopped.
I do return None in some of my code, but it is intended and within the rules (as far as my understanding goes). What surprises me is that this error do not look like an intended response from the test but rather that the assert does not expect a None return, resulting in the testing framework crashing as a whole.
Why is the expected result 0?
I would suggest to change kata's category from "Puzzles" to "Basics".