leet-code/src/main/java/leetcode/editor/cn/SumOfTwoIntegers.md

13 lines
568 B
Markdown
Raw Normal View History

2021-05-10 23:16:28 +08:00
<p><strong>不使用</strong>运算符&nbsp;<code>+</code>&nbsp;<code>-</code>&nbsp;​​​​​​​,计算两整数&nbsp;<code>a</code>&nbsp;<code>b</code>&nbsp;​​​​​​​之和。</p>
<p><strong>示例 1:</strong></p>
<pre><strong>输入: </strong>a = 1, b = 2
<strong>输出: </strong>3
</pre>
<p><strong>示例 2:</strong></p>
<pre><strong>输入: </strong>a = -2, b = 3
<strong>输出: </strong>1</pre>
<div><div>Related Topics</div><div><li>位运算</li></div></div>\n<div><li>👍 393</li><li>👎 0</li></div>