I wanted to ask if there is an algorithm that can find, in an array of length n, if there is an array element with a certain frequency percentage (10%, 20% etc...) in linear time.
Selection sort is O(n^2) and the majority algorithm even if O(n) can only find if the number is repeated at least n/2 times.