Take an integer pivot . There are possible values in but only occurrences of such values in the whole array. When , the pigeonhole principle givesRepeated values do not invalidate the argument: they can only reduce the number of distinct values represented by those occurrences. The other side might also contain a missing value.
Articles by others on the same topic
There are currently no matching articles.