1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/不用加号的加法 [add-without-plus-lcci].html
2022-03-29 12:43:11 +08:00

16 lines
384 B
HTML

<p>设计一个函数把两个数字相加。不得使用 + 或者其他算术运算符。</p>
<p><strong>示例:</strong></p>
<pre><strong>输入:</strong> a = 1, b = 1
<strong>输出:</strong> 2</pre>
<p>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
<li><code>a</code>,&nbsp;<code>b</code>&nbsp;均可能是负数或 0</li>
<li>结果不会溢出 32 位整数</li>
</ul>