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...
Great kata, maybe try to mention the rules of (+ - + -) when having a chain of determinates in the details.
This comment is hidden because it contains spoiler information about the solution
Pretty good Kata! Thanks to author!
Good job, it always feels amazing to finally reach a goal that you set yourself ages ago
I forgot too, but thankfully I realised after reading the formula a couple times
I'm proud of myself for actually solving the problem instead of depending on libraries to do it for me
Yesterday, I mentioned that there was an issue with random tests, and I couldn't express the error accurately at the time. However I am now sure that it is an Overflow Error due to the large matrixes which causes different results for each primitive type. There needs to be a limitation on this!!!!
The issue was related to the returned double variable from .pow() method Thanks for your kindness
I've marked your last comment as spoiler. I think Math.pow uses doubles, and there might be some truncation errors or something.
This comment is hidden because it contains spoiler information about the solution
your solution timing out is not a kata issue
i'm pretty sure my code works since i'm passing all the other tests but for some ridiculous reason, i cant get through the random test. i'm willing to risk not getting any points so i'm going to open the solutions and test them now
Loading more items...