Problem 3346 · Medium

Maximum Frequency of an Element After Performing Operations I

Try each target value within k of a number; numbers already equal to it are free, and nearby numbers can be moved until the operations run out.

Open the interactive visualisation