##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
6 alex blake 2 blake alex 2 casey alex 5 blake casey 7 alex blake 4 alex casey 4
alex blake
2 alice bob 5 bob alice 5
Nobody has a negative balance
2 dan eve 10 fay eve 10
dan fay
Given a list of debt records between team members, where each record consists of a borrower name, a lender name, and an integer amount, compute each person's net balance defined as:
Return the names of all people who have the smallest (most negative) net balance, sorted alphabetically and separated by spaces.
If nobody has a negative net balance, output: Nobody has a negative balance
or
Record 1: alex borrows from blake. Record 2: blake borrows from alex. Record 3: casey borrows from alex. Record 4: blake borrows from casey. Record 5: alex borrows from blake. Record 6: alex borrows from casey.
alex: total lent , total borrowed , net . blake: total lent , total borrowed , net . casey: total lent , total borrowed , net .
Minimum balance is , shared by alex and blake. Output sorted alphabetically: alex blake.
alice: total lent , total borrowed , net . bob: total lent , total borrowed , net .
No one has a negative balance. Output: Nobody has a negative balance.
dan: borrowed , lent nothing, net . fay: borrowed , lent nothing, net . eve: borrowed nothing, lent , net .
Minimum balance is , shared by dan and fay. Output sorted: dan fay.