摘要:
题目 代码 class Solution {public: int removeElement(vector& nums, int val) { int i = 0, j = 0; while(j != nums.size()) ... 阅读全文
摘要:
题目 代码 class Solution {public: vector twoSum(vector& numbers, int target) { int start=0,end=numbers.size()-1; vector resul... 阅读全文
摘要:
题目 代码 class Solution {public: int arrayPairSum(vector& nums) { std::sort(nums.begin(),nums.end()); int result=0; f... 阅读全文
摘要:
题目 代码class Solution {public: string addBinary(string a, string b) { int lenA = a.length(); int lenB = b.length(); string result; int a... 阅读全文