mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 19:01:47 +08:00
批量更新数据
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<p>给你一个 <code>m * n</code> 的矩阵,矩阵中的数字 <strong>各不相同</strong> 。请你按 <strong>任意</strong> 顺序返回矩阵中的所有幸运数。</p>
|
||||
<p>给你一个 <code>m x n</code> 的矩阵,矩阵中的数字 <strong>各不相同</strong> 。请你按 <strong>任意</strong> 顺序返回矩阵中的所有幸运数。</p>
|
||||
|
||||
<p><strong>幸运数</strong> 是指矩阵中满足同时下列两个条件的元素:</p>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
<p><strong class="example">示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>matrix = [[3,7,8],[9,11,13],[15,16,17]]
|
||||
@@ -17,7 +17,7 @@
|
||||
<strong>解释:</strong>15 是唯一的幸运数,因为它是其所在行中的最小值,也是所在列中的最大值。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
<p><strong class="example">示例 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>matrix = [[1,10,4,2],[9,3,8,7],[15,16,17,12]]
|
||||
@@ -25,12 +25,12 @@
|
||||
<strong>解释:</strong>12 是唯一的幸运数,因为它是其所在行中的最小值,也是所在列中的最大值。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 3:</strong></p>
|
||||
<p><strong class="example">示例 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>matrix = [[7,8],[1,2]]
|
||||
<strong>输出:</strong>[7]
|
||||
<strong>解释:</strong>7是唯一的幸运数字,因为它是行中的最小值,列中的最大值。
|
||||
<strong>解释:</strong>7 是唯一的幸运数字,因为它是行中的最小值,列中的最大值。
|
||||
</pre>
|
||||
|
||||
<p> </p>
|
||||
@@ -41,6 +41,6 @@
|
||||
<li><code>m == mat.length</code></li>
|
||||
<li><code>n == mat[i].length</code></li>
|
||||
<li><code>1 <= n, m <= 50</code></li>
|
||||
<li><code>1 <= matrix[i][j] <= 10^5</code></li>
|
||||
<li><code>1 <= matrix[i][j] <= 10<sup>5</sup></code></li>
|
||||
<li>矩阵中的所有元素都是不同的</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user