A majority element in an array of size n is an element that appears more than n/2 times. Check out some algorithms on how to find the majority element: http://www.geeksforgeeks.org/majority...
In this video, we are working out an approach using javascript objects and their fast access time to write a linear time algorithm for this problem.
Find more exercises on the AlgorithmProblemBot's twitter page: / algorithmproble (yes, that's the correct URL :) )
On this page of the site you can watch the video online Javascript Array Exercise: Majority Element with a duration of hours minute second in good quality, which was uploaded by the user LEAN-CODERS 10 May 2016, share the link with friends and acquaintances, this video has already been watched 5,468 times on youtube and it was liked by 46 viewers. Enjoy your viewing!