1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 07:51:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>如果整数&nbsp; <code>x</code> 满足:对于每个数位&nbsp;<code>d</code> ,这个数位&nbsp;<strong>恰好</strong> 在 <code>x</code> 中出现 <code>d</code> 次。那么整数 <code>x</code> 就是一个 <strong>数值平衡数</strong> 。</p>\n\n<p>给你一个整数 <code>n</code> ,请你返回 <strong>严格大于</strong> <code>n</code> 的 <strong>最小数值平衡数</strong> 。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 1\n<strong>输出:</strong>22\n<strong>解释:</strong>\n22 是一个数值平衡数,因为:\n- 数字 2 出现 2 次 \n这也是严格大于 1 的最小数值平衡数。\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 1000\n<strong>输出:</strong>1333\n<strong>解释:</strong>\n1333 是一个数值平衡数,因为:\n- 数字 1 出现 1 次。\n- 数字 3 出现 3 次。 \n这也是严格大于 1000 的最小数值平衡数。\n注意1022 不能作为本输入的答案,因为数字 0 的出现次数超过了 0 。</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 3000\n<strong>输出:</strong>3133\n<strong>解释:</strong>\n3133 是一个数值平衡数,因为:\n- 数字 1 出现 1 次。\n- 数字 3 出现 3 次。 \n这也是严格大于 3000 的最小数值平衡数。\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>0 &lt;= n &lt;= 10<sup>6</sup></code></li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 49,
"likes": 62,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"12.3K\", \"totalSubmission\": \"22.5K\", \"totalAcceptedRaw\": 12265, \"totalSubmissionRaw\": 22505, \"acRate\": \"54.5%\"}",
"stats": "{\"totalAccepted\": \"15.7K\", \"totalSubmission\": \"27.6K\", \"totalAcceptedRaw\": 15657, \"totalSubmissionRaw\": 27561, \"acRate\": \"56.8%\"}",
"hints": [
"How far away can the next greater numerically balanced number be from n?",
"With the given constraints, what is the largest numerically balanced number?"