Given two integers a and b, return the sum of the two integers without using the operators + and -.
Example 1:
1 | Input: a = 1, b = 2 |
Example 2:
1 | Input: a = 2, b = 3 |
不用+ 做加法,那用Sum看看,雖然有過,但題目中級,下次做應該要更深入,另外int是不能用sum加,要轉列表。
1 | T:O(n), S:O(1) |
如果你覺得這篇文章很棒,請你不吝點讚 (゚∀゚)