Optimal Account Balancing

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

Examples
Input: [[0,1,10],[2,0,5]]
Output: 2
Hints

Optimal Account Balancing

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