You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// create a graph, of all potential plays the user can make from resources I, and then assign a weight to each edge, see if there is any vertex that contains the resource D, and if there is, follow
81
+
// the path back and see if it's possible to reach the beginning of the path from the end.
Generates a determinant of the matrix passed into the function
27
+
28
+
Args:
29
+
matrix (List[List[int]]): The matrix we are given to calculate the determinant of
30
+
31
+
Returns:
32
+
int: The determinant of the matrix, as described above.
33
+
"""
34
+
## what we have to do, is to first have 2 cases: 1x1, and 2x2, then we just basically do this
35
+
# for each part of the matrix, we generate the determinant of the first row, by passing in the generated matrix into this same function, which will eventually
36
+
# return a value for whichever matrix we pass into it
0 commit comments