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 a89ad9f commit a073e9dCopy full SHA for a073e9d
src/main/java/com/fishercoder/solutions/_240.java
@@ -1,28 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 240. Search a 2D Matrix II
5
- *
6
- * Write an efficient algorithm that searches for a value in an m x n matrix.
7
- * This matrix has the following properties:
8
-
9
- Integers in each row are sorted in ascending from left to right.
10
- Integers in each column are sorted in ascending from top to bottom.
11
- For example,
12
13
- Consider the following matrix:
14
15
- [
16
- [1, 4, 7, 11, 15],
17
- [2, 5, 8, 12, 19],
18
- [3, 6, 9, 16, 22],
19
- [10, 13, 14, 17, 24],
20
- [18, 21, 23, 26, 30]
21
- ]
22
- Given target = 5, return true.
23
24
- Given target = 20, return false.
25
- */
26
public class _240 {
27
28
public static class Solution1 {
0 commit comments