1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-22 05:26:46 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>几乎每一个人都用&nbsp;<a href=\"https://baike.baidu.com/item/%E4%B9%98%E6%B3%95%E8%A1%A8\">乘法表</a>。但是你能在乘法表中快速找到第<code>k</code>小的数字吗?</p>\n\n<p>给定高度<code>m</code>&nbsp;、宽度<code>n</code> 的一张&nbsp;<code>m * n</code>的乘法表,以及正整数<code>k</code>,你需要返回表中第<code>k</code>&nbsp;小的数字。</p>\n\n<p><strong>例&nbsp;1</strong></p>\n\n<pre>\n<strong>输入:</strong> m = 3, n = 3, k = 5\n<strong>输出:</strong> 3\n<strong>解释:</strong> \n乘法表:\n1\t2\t3\n2\t4\t6\n3\t6\t9\n\n第5小的数字是 3 (1, 2, 2, 3, 3).\n</pre>\n\n<p><strong>例 2</strong></p>\n\n<pre>\n<strong>输入:</strong> m = 2, n = 3, k = 6\n<strong>输出:</strong> 6\n<strong>解释:</strong> \n乘法表:\n1\t2\t3\n2\t4\t6\n\n第6小的数字是 6 (1, 2, 2, 3, 4, 6).\n</pre>\n\n<p><strong>注意:</strong></p>\n\n<ol>\n\t<li><code>m</code> 和&nbsp;<code>n</code>&nbsp;的范围在 [1, 30000] 之间。</li>\n\t<li><code>k</code> 的范围在 [1, m * n] 之间。</li>\n</ol>\n",
"isPaidOnly": false,
"difficulty": "Hard",
"likes": 175,
"likes": 177,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Kth Smallest Element in a Sorted Matrix\", \"titleSlug\": \"kth-smallest-element-in-a-sorted-matrix\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u6709\\u5e8f\\u77e9\\u9635\\u4e2d\\u7b2c K \\u5c0f\\u7684\\u5143\\u7d20\"}, {\"title\": \"Find K-th Smallest Pair Distance\", \"titleSlug\": \"find-k-th-smallest-pair-distance\", \"difficulty\": \"Hard\", \"translatedTitle\": \"\\u627e\\u51fa\\u7b2c k \\u5c0f\\u7684\\u8ddd\\u79bb\\u5bf9\"}, {\"title\": \"K-th Smallest Prime Fraction\", \"titleSlug\": \"k-th-smallest-prime-fraction\", \"difficulty\": \"Hard\", \"translatedTitle\": \"\\u7b2c K \\u4e2a\\u6700\\u5c0f\\u7684\\u7d20\\u6570\\u5206\\u6570\"}]",
@@ -137,7 +137,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"8.2K\", \"totalSubmission\": \"15.8K\", \"totalAcceptedRaw\": 8192, \"totalSubmissionRaw\": 15845, \"acRate\": \"51.7%\"}",
"stats": "{\"totalAccepted\": \"8.4K\", \"totalSubmission\": \"16.2K\", \"totalAcceptedRaw\": 8419, \"totalSubmissionRaw\": 16219, \"acRate\": \"51.9%\"}",
"hints": [],
"solution": null,
"status": null,