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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy