Problem 2256 · Medium

Minimum Average Difference

Keep a running sum of the left part and get the right part from the total, comparing floored averages at each split.

Open the interactive visualisation