Majority Vote

Take a list as input and returns the majority vote in a list. A majority vote is an element that occurs > N/2 times in a list (where N is the length of the list).

Notes
The frequency of the majority element must be strictly greater than 1/2.
If there is no majority element, return None.
If the list is empty, return None.
["A", "A", "B"]
Total : 2 Discussion
Login
codeexperts
    
List
List
Reply     
codeexperts
    
Please help me with Questions
Reply