Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a94b419

Browse files
committed
fix: change initialization to zero
1 parent 4284d3b commit a94b419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Maths/Determinant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const determinant = (matrix) => {
6666
if (numCols === 1) {
6767
return matrix[0][0]
6868
}
69-
let result = null
69+
let result = 0
7070
let setIndex = 0
7171
for (let i = 0; i < numCols; i++) {
7272
result +=

0 commit comments

Comments
 (0)