摘要: ```C++ class Solution { public: int MoreThanHalfNum_Solution(vector numbers) { if(numbers.empty()){ return 0; } if(numbers.size() == 1){ return numb... 阅读全文
posted @ 2018-08-30 15:05 一条图图犬 阅读(117) 评论(0) 推荐(0) 编辑
摘要: ```C++ class Solution { public: bool IsContinuous( vector numbers ) { if(numbers.empty()) return false; set s; for(int num: numbers){ if(num != 0){ if 阅读全文
posted @ 2018-08-30 14:29 一条图图犬 阅读(101) 评论(0) 推荐(0) 编辑
摘要: bfs dfs 阅读全文
posted @ 2018-08-30 11:30 一条图图犬 阅读(85) 评论(0) 推荐(0) 编辑