Grokking Data Structures & Algorithms for Coding Interviews
0% completed
Solution: Majority Element
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 3 years ago
There's a way less complex O(n) solution that iterates over the array once at the cost of having O(n) space.
Reading Progress
0%