Loading

摘要: 题目 代码 class Solution {public: int removeElement(vector& nums, int val) { int i = 0, j = 0; while(j != nums.size()) ... 阅读全文
posted @ 2019-02-22 17:08 李正浩 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目 代码 class Solution {public: vector twoSum(vector& numbers, int target) { int start=0,end=numbers.size()-1; vector resul... 阅读全文
posted @ 2019-02-22 15:26 李正浩 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目 代码 class Solution {public: int arrayPairSum(vector& nums) { std::sort(nums.begin(),nums.end()); int result=0; f... 阅读全文
posted @ 2019-02-22 15:10 李正浩 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 题目 代码class Solution {public: string addBinary(string a, string b) { int lenA = a.length(); int lenB = b.length(); string result; int a... 阅读全文
posted @ 2019-02-22 12:26 李正浩 阅读(139) 评论(0) 推荐(0) 编辑