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 :) )
Nesta página do site você pode assistir ao vídeo on-line Javascript Array Exercise: Majority Element duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário LEAN-CODERS 10 Maio 2016, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 5,468 vezes e gostou 46 espectadores. Boa visualização!