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.
Bravo for this decompilation from bytecode! I did almost the same thing.
ps: although I think you don't have to "return None" in the end. Python does automatically.
This comment is hidden because it contains spoiler information about the solution
It is important to consider the case when
i
andn/i
are both square root ofn
.There is no test to verify if something other than list is passed. In this case an exception is expected to be thrown. I suggest the following test case.