摘要: class Solution {public: int FindGreatestSumOfSubArray(vector<int> array) { int maxNum =0x80000000; int curNum = 0; for(int i=0; i<array.size(); i++) { 阅读全文
posted @ 2017-03-02 22:47 夜雨寒山 阅读(74) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int MoreThanHalfNum_Solution(vector<int> numbers) { if(numbers.empty()) return 0; int count =0; int midVal =0; int tobesorted 阅读全文
posted @ 2017-03-02 21:30 夜雨寒山 阅读(71) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int GetUglyNumber_Solution(int index) { //变量定义区 int subA=0, subB=0, subC=0; int sub =0; int* array = new int[index]; array[0] 阅读全文
posted @ 2017-03-02 20:46 夜雨寒山 阅读(179) 评论(0) 推荐(0) 编辑