Problem 3759 · Medium

Count Elements With at Least K Greater Values

Count the elements of nums that have at least k other elements strictly greater than them.

Open the interactive visualisation