Write a function to calculate the determinant of a matrix recursively.
HardProblem Statement
Write a function to calculate the determinant of a matrix recursively.
Sample Input
Matrix: [,1] [,2] [,3] [1,] 1 2 3 [2,] 4 5 6 [3,] 7 8 9
Sample Output
Determinant: 0
Limits
Time: 2s · Memory: 256 MB