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 a453d3e commit a476546Copy full SHA for a476546
src/main/java/com/fishercoder/solutions/_73.java
@@ -6,11 +6,11 @@
6
* Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
7
8
Follow up:
9
+
10
Did you use extra space?
11
A straight forward solution using O(mn) space is probably a bad idea.
12
A simple improvement uses O(m + n) space, but still not the best solution.
13
Could you devise a constant space solution?
-
14
*/
15
public class _73 {
16
@@ -131,4 +131,4 @@ public void setZeroes(int[][] matrix) {
131
}
132
133
134
-}
+}
0 commit comments