We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This is a relatively sparse matrix, so we might be able to solve it directly.
Find any row or column that has only one non-zero value. The remaining zeros nullify any sub-matrix they might multiply, so the determinant must go through that value. Accordingly, we can zero out the rest of the column or row (note the reversal of terms) where a value is the only non-zero in its column or row. (There are two such.)
Iterate #1 as far as possible. (This isolates a third row & column)
The determinant of the remaining matrix is (relatively) easy to compute.
matrix is only N=5, might as well bruteforce recurse
It looks like my homework bruh print(-114)
-114
This is a relatively sparse matrix, so we might be able to solve it directly.
The answer is -114.