mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 05:26:46 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给你一个整数 <code>n</code> ,请你返回所有 0 到 1 之间(不包括 0 和 1)满足分母小于等于 <code>n</code> 的 <strong>最简 </strong>分数 。分数可以以 <strong>任意 </strong>顺序返回。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong>n = 2\n<strong>输出:</strong>["1/2"]\n<strong>解释:</strong>"1/2" 是唯一一个分母小于等于 2 的最简分数。</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong>n = 3\n<strong>输出:</strong>["1/2","1/3","2/3"]\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong>n = 4\n<strong>输出:</strong>["1/2","1/3","1/4","2/3","3/4"]\n<strong>解释:</strong>"2/4" 不是最简分数,因为它可以化简为 "1/2" 。</pre>\n\n<p><strong>示例 4:</strong></p>\n\n<pre><strong>输入:</strong>n = 1\n<strong>输出:</strong>[]\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= n <= 100</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 83,
|
||||
"likes": 84,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"39.3K\", \"totalSubmission\": \"57.9K\", \"totalAcceptedRaw\": 39271, \"totalSubmissionRaw\": 57934, \"acRate\": \"67.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"39.5K\", \"totalSubmission\": \"58.2K\", \"totalAcceptedRaw\": 39463, \"totalSubmissionRaw\": 58198, \"acRate\": \"67.8%\"}",
|
||||
"hints": [
|
||||
"A fraction is fully simplified if there is no integer that divides cleanly into the numerator and denominator.",
|
||||
"In other words the greatest common divisor of the numerator and the denominator of a simplified fraction is 1."
|
||||
|
Reference in New Issue
Block a user