Problem 465 · Hard

Optimal Account Balancing

Given a list of transactions between people, compute the net balance of each person and find the minimum number of transfers required to settle all debts.

Open the interactive visualisation