标签:leetcode class amp solution public color etc add tco
class Solution { public: int add(int a, int b) { int jinwei = 0; int wujinwei = 0; while(b!=0) { jinwei = ((a&b)<<1); wujinwei = a ^ b; a = wujinwei; b = jinwei; } return wujinwei; } int getSum(int a, int b) { return add(a, b); } };
标签:leetcode class amp solution public color etc add tco
原文地址:https://www.cnblogs.com/randyniu/p/9473489.html