-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
43 lines (39 loc) · 1004 Bytes
/
Main.java
File metadata and controls
43 lines (39 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package leetcode._74_;
/**
* Created by zhangbo54 on 2019-03-04.
*/
public class Main {
public static void main(String[] args) {
Solution solution = new Solution();
int[][] matrix = {
{
1, 3, 5, 7
},
{
10, 11, 16, 20
},
{
23, 30, 34, 50
}
};
System.out.println(solution.searchMatrix(matrix, 3));
int[][] matrix2 = {
{
1, 3, 5, 7
},
{
10, 11, 16, 20
},
{
23, 30, 34, 50
}
};
System.out.println(solution.searchMatrix(matrix2, 13));
int[][] matrix3 = {
{
1
}
};
System.out.println(solution.searchMatrix(matrix3, 0));
}
}