2024每日刷题(149) Leetcode—240. 搜索二维矩阵 II 实现代码 class Solution { public: bool searchMatrix(vector<vector<int>>& matrix, int target) { int r = 0; int c = matrix[0].size() - 1