摘要: 题目 Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following properties: Integers 阅读全文
posted @ 2022-06-14 19:54 frankming 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order. Example 1: Input: n = 3 Output: [[1,2,3],[8 阅读全文
posted @ 2022-06-14 19:47 frankming 阅读(21) 评论(0) 推荐(0) 编辑