Solution: Optimal Account Balancing
Optimal Account Balancing gives transactions showing who paid whom and how much, then asks for the fewest additional transactions needed to settle every person's debt.
We'll cover the following...
We'll cover the following...
Statement
Given a list of transactions, where each transaction is represented as