diff --git a/search-a-2d-matrix/sol.rs b/search-a-2d-matrix/sol.rs new file mode 100644 index 0000000..3005781 --- /dev/null +++ b/search-a-2d-matrix/sol.rs @@ -0,0 +1,5 @@ +impl Solution { + pub fn search_matrix(matrix: Vec>, target: i32) -> bool { + matrix.concat().binary_search(&target).is_ok() + } +} \ No newline at end of file