public class Solution { public int Add(int num1, int num2) { do { int b = num1 & num2; num1 = num1 ^ num2; num2 = b << 1; } while (num2 != 0); return num1; } }
public class Solution { public int Add(int num1, int num2) { do { int b = num1 & num2; num1 = num1 ^ num2; num2 = b << 1; } while (num2 != 0); return num1; } }