Skip to content

Commit 26d823b

Browse files
committed
Fixed space complexity of setMatrixZeroes
1 parent 227adac commit 26d823b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

set-matrix-zeroes/nhistory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ var setZeroes = function (matrix) {
2121
};
2222

2323
// TC: O(m*n)
24-
// SC: O(m*n)
24+
// SC: O(m+n)

0 commit comments

Comments
 (0)