Problem 3434 · Medium

Maximum Frequency After Subarray Operation

Add one shared amount to a contiguous block so that as many values as possible equal k.

Open the interactive visualisation