jz65专题

2021-11-21(JZ65 不用加减乘除做加法)

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