Problem 1224 · Hard

Maximum Equal Frequency

Track value counts and count-of-counts for each prefix, then test whether removing one element can equalise every frequency.

Open the interactive visualisation