mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 15:01:40 +08:00
国外版
This commit is contained in:
16
算法题(国外版)/sum-of-two-integers.html
Normal file
16
算法题(国外版)/sum-of-two-integers.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<p>Given two integers <code>a</code> and <code>b</code>, return <em>the sum of the two integers without using the operators</em> <code>+</code> <em>and</em> <code>-</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<pre><strong>Input:</strong> a = 1, b = 2
|
||||
<strong>Output:</strong> 3
|
||||
</pre><p><strong>Example 2:</strong></p>
|
||||
<pre><strong>Input:</strong> a = 2, b = 3
|
||||
<strong>Output:</strong> 5
|
||||
</pre>
|
||||
<p> </p>
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>-1000 <= a, b <= 1000</code></li>
|
||||
</ul>
|
Reference in New Issue
Block a user