A + B Problem
Write a function that add two numbers A and B. You should not use +
or any arithmetic operators.
Example
Given a=1
and b=2
return 3
.
Answer
1 | public class Solution { |
Write a function that add two numbers A and B. You should not use +
or any arithmetic operators.
Given a=1
and b=2
return 3
.
1 | public class Solution { |