search-a-2d-matrix
This commit is contained in:
parent
06fe666bcd
commit
17e37c823d
5
search-a-2d-matrix/sol.rs
Normal file
5
search-a-2d-matrix/sol.rs
Normal file
@ -0,0 +1,5 @@
|
||||
impl Solution {
|
||||
pub fn search_matrix(matrix: Vec<Vec<i32>>, target: i32) -> bool {
|
||||
matrix.concat().binary_search(&target).is_ok()
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user