Optimal Account Balancing

Problem overview from a real Pinterest interview:

You are given an array of transactions transactions where transactions[i] = [fromi, toi, amounti] indicates that the person with ID = fromi gave amounti dollars to the person with ID = toi.

Check more interview questions and experiences about Pinterest

Please log in to view interview details