mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定正整数 <code>n</code>,返回在<em> </em><code>[1, n]</code><em> </em>范围内具有 <strong>至少 1 位</strong> 重复数字的正整数的个数。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 20\n<strong>输出:</strong>1\n<strong>解释:</strong>具有至少 1 位重复数字的正数(<= 20)只有 11 。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 100\n<strong>输出:</strong>10\n<strong>解释:</strong>具有至少 1 位重复数字的正数(<= 100)有 11,22,33,44,55,66,77,88,99 和 100 。\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 1000\n<strong>输出:</strong>262\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= n <= 10<sup>9</sup></code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 97,
|
||||
"likes": 101,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"3.5K\", \"totalSubmission\": \"10.1K\", \"totalAcceptedRaw\": 3525, \"totalSubmissionRaw\": 10124, \"acRate\": \"34.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"3.6K\", \"totalSubmission\": \"10.3K\", \"totalAcceptedRaw\": 3617, \"totalSubmissionRaw\": 10287, \"acRate\": \"35.2%\"}",
|
||||
"hints": [
|
||||
"How many numbers with no duplicate digits? How many numbers with K digits and no duplicates?",
|
||||
"How many numbers with same length as N? How many numbers with same prefix as N?"
|
||||
|
Reference in New Issue
Block a user