How is this Majority element??


  • 0
    A

    Your input
    Here n=11 and for element to be a majority element , there must be atleast 5 same elements right.Plese correct me if I am wrong.
    [6,3,4,99,11,66,2,2,2,1,1]
    Your answer
    2

    Expected answer

    2


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.