1. 程式人生 > >貪心演算法Lintcode 46. Majority Element

貪心演算法Lintcode 46. Majority Element

Given an array of integers, the majority number is the number that occursmore than halfof the size of the array. Find it.