Minimize Cash Flow among a given set of friends who have borrowed money from each other
Given a number of friends who have to give or take some amount of money from one another. Design an algorithm by which the total cash flow among all the friends is minimized.
Latest Source Code:
Github: MinimizeCashFlow.java
Output:
Person(1) pays 4000 to Person(2) Person(0) pays 3000 to Person(2)