美文网首页
Majority Element

Majority Element

作者: myang199088 | 来源:发表于2015-04-24 20:36 被阅读10次

    Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.

    You may assume that the array is non-empty and the majority element always exist in the array.
    解题报告

    相关文章

      网友评论

          本文标题:Majority Element

          本文链接:https://www.haomeiwen.com/subject/vwupfttx.html