摘要: 力扣 核心思路:一维数组中index对应矩阵中的索引公式=martix[index/n][index%n],掌握映射关系是关键。 点击查看代码 class Solution { public boolean searchMatrix(int[][] matrix, int target) { int 阅读全文
posted @ 2025-09-29 22:37 柳成荫y 阅读(6) 评论(0) 推荐(0)