In a sorted array, find how many times the most frequent value appears — faster than reading every element when there are few distinct values.
In a sorted array, find how many times the most frequent value appears — faster than reading every element when there are few distinct values.
Opens with the full question.