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.
Thanks
I did
console
to track the test #, and also to see your code's output.You are failing on the fixed test
assert.isTrue(determinant(m7)===88)
where your code returns
-88
instead of88
.I hope that helps!
Ups. I am sorry, but it seems I cannot format it to make it more readable...
This comment is hidden because it contains spoiler information about the solution
Would you show me your code?
Idk how to see it
I tried to solve this problems not by recursion but with gaussian. The determinant I found for the matrix of 5x5 seems to be correct, but the test is showing me a strange "expected false to be true". Since the determinant is a number I can't figure out what is wrong here.
The kata simple said you should return the determinant not the way you should figure it out or am I wrong?
Might try to solve it again by using recursion but still confused why my solution is not accepted.