Calculate the sum of two integers a and b, but you are not allowed to use the operator +
and -
.
Example 1:
1 |
Input: a = 1, b = 2 |
Example 2:
1 |
Input: a = -2, b = 3 |
1 |
class { |
Calculate the sum of two integers a and b, but you are not allowed to use the operator +
and -
.
Example 1:
1 |
Input: a = 1, b = 2 |
Example 2:
1 |
Input: a = -2, b = 3 |
1 |
class { |
近期评论