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.
This comment is hidden because it contains spoiler information about the solution
Fractions bigger than
1
are arbitrarilyFalse
inputs. By specifyingpositive
fornum
andden
, you achieve two things: you exclude arbitrarilyFalse
inputs for fractions less than0
( which is just as arbitrary as bigger than1
), and you exclude0
as an input.Inputs bigger than
1
are a senseless special case, as you can see in everybody's solution. You might as well exclude them.Inputs equal to
0
are excluded for no good reason. You might as well not exclude them.what's the point? This brings nothing interesting to your kata, you should just drop those inputs.
It would be nice to have some information on the inputs (ie. how large can
n
be? etc.)Why
q
is not given asFraction
rather thanlist
? (you can't have 1/0 (but that is pointless to test anyway))