Minimize Cash Flow among a given set of friends who have borrowed money from each other

Revision en2, by ss_96, 2018-01-18 20:37:35

I read a heap solution at the following link:link but cannot figure out that solution,can anyone please provide some pseudo-code or some explanation for the solution using heaps.

Thank you for your time.

Tags c++, #heap, greedy

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ss_96 2018-01-18 20:37:35 10
en1 English ss_96 2018-01-18 20:37:03 428 Initial revision (published)