mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<p>Return <code>true</code> <em>if the <strong>summation</strong> of the <strong>numerical values</strong> of </em><code>firstWord</code><em> and </em><code>secondWord</code><em> equals the <strong>numerical value</strong> of </em><code>targetWord</code><em>, or </em><code>false</code><em> otherwise.</em></p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> firstWord = "acb", secondWord = "cba", targetWord = "cdb"
|
||||
@@ -23,7 +23,7 @@ The numerical value of targetWord is "cdb" -> "231" ->
|
||||
We return true because 21 + 210 == 231.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> firstWord = "aaa", secondWord = "a", targetWord = "aab"
|
||||
@@ -35,7 +35,7 @@ The numerical value of targetWord is "aab" -> "001" ->
|
||||
We return false because 0 + 0 != 1.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> firstWord = "aaa", secondWord = "a", targetWord = "aaaa"
|
||||
|
Reference in New Issue
Block a user