What if array size is large? Then there can be more than 2 majority elements.
Please tell what to do in that case.
Majority element doubt
Hey @vatsal50
Majority element is element that appears more than N/2 times here N is size of array
So irrespective of array size there will be always one majority element
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.