Problem 3375 · Easy

Minimum Operations to Make Array Values Equal to K

Each distinct value above k costs one operation to lower to the next level, and any value below k makes the goal impossible.

Open the interactive visualisation