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.
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.