1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 23:11:41 +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;<code>n</code>,返回在<em>&nbsp;</em><code>[1, n]</code><em>&nbsp;</em>范围内具有 <strong>至少 1 位</strong> 重复数字的正整数的个数。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 20\n<strong>输出:</strong>1\n<strong>解释:</strong>具有至少 1 位重复数字的正数(&lt;= 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 位重复数字的正数(&lt;= 100有 112233445566778899 和 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>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 &lt;= n &lt;= 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?"