class Solution {
public:
int add(int a, int b) {
vector<int> temp = {a, b};
int sum = accumulate(temp.begin(), temp.end(), 0);
return sum;
}
};
leetcode面试题 17.01. 不用加号的加法
最新推荐文章于 2023-09-03 01:48:01 发布
class Solution {
public:
int add(int a, int b) {
vector<int> temp = {a, b};
int sum = accumulate(temp.begin(), temp.end(), 0);
return sum;
}
};