Problem 3389 ·

Minimum Operations to Make Character Frequencies Equal

Shows how each candidate target letter is tried and the cost of moving every letter count toward it is compared against the best so far. The sample is a small invented string with letter counts.

Open the interactive visualisation