← All problems
Easy · Arrays & Hashing

Majority Element

Find the element occurring more than n/2 times.

Full problem and submission ↗
main.js

Console

Ready