Simplify debts to minimize the total amount of payments.
- Change
nodes
anddebts
insrc/demo.mjs
. - Run
yarn demo
.
Run yarn test
.
The algorithm comes more or less from https://www.geeksforgeeks.org/minimize-cash-flow-among-given-set-friends-borrowed-money/.