hi am stuck im trying to figure out how i can find the majority of numbers say in a list with the time complexity of O(n)
say i have a given list of n elements finding all elements on the list that occur more then n/4 time.
how would i do this and how would it look in java code
please can any one help