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.
Yes, you are right. The Task says "Given a positive number, find ...", I've overlooked this. Thank you
Nope,
0
is not a positive number, so it is out of the scope of this katafixed
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is not the case. For example, x=2.
The action lambda x:0 results in 0,
and the action lambda x:x%2 results in 0 too
There is a trouble with python random test case -
a test should look as a tuple:
(command, number_to_operate_with, expected_result_of_operation, "explanation");
the command is in range 0..4. But in the test case we see random.randint(0,1000000)
It should be:
random.randint(0,1000000) % 5
or:
random.randint(0,4)
Nobody's going to change the requirements now. Apart from that, such inputs would contradict the idea of the kata.
Fixed no.1
Thank you ))
Added to description.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
it means "don't hard code everything" (I guess...)
This comment is hidden because it contains spoiler information about the solution
Loading more items...