mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 19:31:42 +08:00
add leetcode problem-cn part2
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<p>给定M×N矩阵,每一行、每一列都按升序排列,请编写代码找出某元素。</p>
|
||||
|
||||
<p><strong>示例:</strong></p>
|
||||
|
||||
<p>现有矩阵 matrix 如下:</p>
|
||||
|
||||
<pre>[
|
||||
[1, 4, 7, 11, 15],
|
||||
[2, 5, 8, 12, 19],
|
||||
[3, 6, 9, 16, 22],
|
||||
[10, 13, 14, 17, 24],
|
||||
[18, 21, 23, 26, 30]
|
||||
]
|
||||
</pre>
|
||||
|
||||
<p>给定 target = <code>5</code>,返回 <code>true</code>。</p>
|
||||
|
||||
<p>给定 target = <code>20</code>,返回 <code>false</code>。</p>
|
Reference in New Issue
Block a user