AlgoMaster Logo

Majority Element

arr=[2, 2, 1, 1, 1, 2, 2]
0 / 10
algomaster.io
Step:Start: a majority element must appear at least 4 times