Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a94b419

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /