Suggest to add more details to the description of the question


  • 0
    S

    Suggest to add more details to the description of the question. For example, if no majority element existing, should return 0, not -1; if there are more than one majority elements existing should return the first found one; more than n/2 not meaning > but >=. Test cases verify the above points but no concreted information in the question description.


Log in to reply
 

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