This is how I normally calculate the determinant of a matrix.

However, the complexity of this algorithm is O(n!).
How to calculate it in polynomial time?
P.S: Why I need to calculate the determinant of a matrix in polynomial time?
How to quickly calculate the determinant of a matrix?
This is how I normally calculate the determinant of a matrix.

However, the complexity of this algorithm is O(n!).
How to calculate it in polynomial time?
P.S: Why I need to calculate the determinant of a matrix in polynomial time?