Problem 1608 · Easy

Special Array With X Elements Greater Than or Equal X

Find the value x where exactly x numbers are at least x by sorting and testing candidates. The visual places the sorted values against the candidate line.

Open the interactive visualisation