Create an algorithm that, given a list of n elements in the array, will find all elements that appear more than 3 times in the list. The algorithm must be executed in linear time (n> = 0)
It is expected that you will use comparisons and achieve linear time. There is no hashing / excessive space / and do not use the standard algorithm of deterministic timing in time? The problem is self-locking, do I feel?
source share