mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-02 14:12:17 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给你一个 <code>m * n</code> 的矩阵,矩阵中的数字 <strong>各不相同</strong> 。请你按 <strong>任意</strong> 顺序返回矩阵中的所有幸运数。</p>\n\n<p><strong>幸运数</strong> 是指矩阵中满足同时下列两个条件的元素:</p>\n\n<ul>\n\t<li>在同一行的所有元素中最小</li>\n\t<li>在同一列的所有元素中最大</li>\n</ul>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>matrix = [[3,7,8],[9,11,13],[15,16,17]]\n<strong>输出:</strong>[15]\n<strong>解释:</strong>15 是唯一的幸运数,因为它是其所在行中的最小值,也是所在列中的最大值。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>matrix = [[1,10,4,2],[9,3,8,7],[15,16,17,12]]\n<strong>输出:</strong>[12]\n<strong>解释:</strong>12 是唯一的幸运数,因为它是其所在行中的最小值,也是所在列中的最大值。\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong>matrix = [[7,8],[1,2]]\n<strong>输出:</strong>[7]\n<strong>解释:</strong>7是唯一的幸运数字,因为它是行中的最小值,列中的最大值。\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>m == mat.length</code></li>\n\t<li><code>n == mat[i].length</code></li>\n\t<li><code>1 <= n, m <= 50</code></li>\n\t<li><code>1 <= matrix[i][j] <= 10^5</code></li>\n\t<li>矩阵中的所有元素都是不同的</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 114,
|
||||
"likes": 118,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"51.4K\", \"totalSubmission\": \"66.8K\", \"totalAcceptedRaw\": 51434, \"totalSubmissionRaw\": 66782, \"acRate\": \"77.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"52K\", \"totalSubmission\": \"67.6K\", \"totalAcceptedRaw\": 52030, \"totalSubmissionRaw\": 67615, \"acRate\": \"77.0%\"}",
|
||||
"hints": [
|
||||
"Find out and save the minimum of each row and maximum of each column in two lists.",
|
||||
"Then scan through the whole matrix to identify the elements that satisfy the criteria."
|
||||
|
Reference in New Issue
Block a user