We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72f59ed commit 0549b6eCopy full SHA for 0549b6e
set-matrix-zeroes/samthekorean.py
@@ -1,5 +1,5 @@
1
# TC: O(m * n)
2
-# SC: O(m * n)
+# SC: O(1)
3
class Solution:
4
def setZeroes(self, matrix: List[List[int]]) -> None:
5
rows, cols = len(matrix), len(matrix[0])
0 commit comments