Skip to content

Commit d3a58bd

Browse files
edit 74
1 parent a828bda commit d3a58bd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ Your ideas/fixes/algorithms are more than welcome!
490490
|77|[Combinations](https://leetcode.com/problems/combinations/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_77.java)|O(n^2) ? |O(1)|Medium|Backtracking
491491
|76|[Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/)|[Solution](../master/src/main/java/com/fishercoder/solutions/MinimumWindowSubstring.java)|O(n)|O(k)|Hard|Two Pointers
492492
|75|[Sort Colors](https://leetcode.com/problems/sort-colors/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_75.java)|O(n)|O(1)|Medium| Two Pointers
493-
|74|[Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix/)|[Solution](../master/src/main/java/com/fishercoder/solutions/Searcha2DMatrix.java)|O(logn)|O(1)|Medium| Binary Search
493+
|74|[Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_74.java)|O(logn)|O(1)|Medium| Binary Search
494494
|73|[Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_73.java)|O(mn)|O(mn)|Medium|
495495
|72|[Edit Distance](https://leetcode.com/problems/edit-distance/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_72.java)|O(m*n)|O(m+n)|Hard|
496496
|71|[Simplify Path](https://leetcode.com/problems/simplify-path/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_71.java)|O(n)|O(n)|Medium| Stack

src/main/java/com/fishercoder/solutions/Searcha2DMatrix.java renamed to src/main/java/com/fishercoder/solutions/_74.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Given target = 3, return true.
1919
2020
*/
21-
public class Searcha2DMatrix {
21+
public class _74 {
2222

2323
public boolean searchMatrix(int[][] matrix, int target) {
2424
if (matrix == null || matrix.length == 0 || matrix[0].length == 0) return false;

src/test/java/com/fishercoder/Searcha2DMatrixTest.java renamed to src/test/java/com/fishercoder/_74Test.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
package com.fishercoder;
22

3-
import com.fishercoder.solutions.Searcha2DMatrix;
3+
import com.fishercoder.solutions._74;
44
import org.junit.Before;
55
import org.junit.BeforeClass;
66
import org.junit.Test;
77

88
import static junit.framework.Assert.assertEquals;
99

10-
public class Searcha2DMatrixTest {
11-
private static Searcha2DMatrix test;
10+
public class _74Test {
11+
private static _74 test;
1212
private static boolean actual;
1313
private static boolean expected;
1414
private static int target;
1515
private static int[][] matrix;
1616

1717
@BeforeClass
1818
public static void setup(){
19-
test = new Searcha2DMatrix();
19+
test = new _74();
2020
}
2121

2222
@Before

0 commit comments

Comments
 (0)