mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 02:41:42 +08:00
批量更新数据
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
|
||||
<p>你可以假设除了整数 0 之外,这个整数不会以零开头。</p>
|
||||
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>digits = [1,2,3]
|
||||
@@ -14,7 +14,7 @@
|
||||
<strong>解释:</strong>输入数组表示数字 123。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>digits = [4,3,2,1]
|
||||
@@ -25,15 +25,18 @@
|
||||
<p><strong>示例 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>digits = [0]
|
||||
<strong>输出:</strong>[1]
|
||||
<strong>输入:</strong>digits = [9]
|
||||
<strong>输出:</strong>[1,0]
|
||||
<strong>解释:</strong>输入数组表示数字 9。
|
||||
加 1 得到了 9 + 1 = 10。
|
||||
因此,结果应该是 [1,0]。
|
||||
</pre>
|
||||
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
||||
<p><strong>提示:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>1 <= digits.length <= 100</code></li>
|
||||
<li><code>0 <= digits[i] <= 9</code></li>
|
||||
<li><code>1 <= digits.length <= 100</code></li>
|
||||
<li><code>0 <= digits[i] <= 9</code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user