摘要: int findMajority(const std::vector<int> &array) { assert(!array.empty ()); int majority = 0; size_t counter = 0; std::for_each(array.cbegin (), array. 阅读全文
posted @ 2016-03-07 22:03 wu_overflow 阅读(207) 评论(0) 推荐(0) 编辑