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.
Why fork the best solution only to change it to the ugliest brute force?
The SSOT rule should be respected by specifications too.
This comment is hidden because it contains spoiler information about the solution
Python2: Clear (or randomize more) your tests. I had 29
123.456.789.0
test cases onSubmit
, and it is just an example of non-uniqueness.Python3: I get
✘ Value is not what was expected
for the third test caseTest.expect(determinant(m2) == -20)
, but for the input[ [2,5,3], [1,-2,-1], [1, 3, 4]]
[freaky non-consistent spaces, btw] my function returns -20 with errors of the order 1e-14. You should use some epsilon comparison.Python3: The class bool is a subclass of the class int, so the type checking forced by this kata is a silly carping.
Python2: You do not allow imports from
__future__
due to some primitive code embedding.Python3: Check your use of
Test.assert_equals
Random tests are not compatible with Python3:
Python3: Tests passed, running Submit…
The specification is broken:
Hmm, so maybe the client wants
[None]
as the answer to the 0x0 case, since we are given the input wherestart_node is end_node is None
? No?You should know that Python 3 has the print function.