Problem 979 · Medium
Each edge carries the surplus of coins below it; the moves are the total of those surpluses.
Open the interactive visualisation