Optimal Account Balancing
Given a list of monetary transactions between people, find the minimum number of transactions needed to settle all debts.
Given a list of monetary transactions between people, find the minimum number of transactions needed to settle all debts.