mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-03 06:22:54 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>如果整数 <code>x</code> 满足:对于每个数位 <code>d</code> ,这个数位 <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> </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> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>0 <= n <= 10<sup>6</sup></code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 12,
|
||||
"likes": 14,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"4.5K\", \"totalSubmission\": \"10.7K\", \"totalAcceptedRaw\": 4544, \"totalSubmissionRaw\": 10702, \"acRate\": \"42.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"4.7K\", \"totalSubmission\": \"11K\", \"totalAcceptedRaw\": 4692, \"totalSubmissionRaw\": 10967, \"acRate\": \"42.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?"
|
||||
|
Reference in New Issue
Block a user