摘要:
int add(int x, int y) { int sum = 0; int temp = 1; while (temp) { sum = x ^ y;//异或,半加 temp = (x & y) << 1;//与运算后,左移一位 x = sum; y = temp; } return x;}i 阅读全文
摘要:
#include<iostream>#include<cmath>#include<vector>using namespace std;class Solution {public: int removeElement(vector<int>& nums, int val) { int slowI 阅读全文