Search⌘ K
AI Features

Solution: Optimal Account Balancing

Solution: Optimal Account Balancing gives transactions as payer, recipient, and amount, then asks for the fewest transfers needed to settle every person's debt.

Statement

Given a list of transactions, where each transaction is represented as transactions[i]=[fromi, toi, amounti]transactions[i] = [from_i,~ to_i,~amount_i] ...