July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
26
:
11
Back to Dashboard
Kth Largest Net Borrower
Easy
You are analyzing a peer-to-peer lending platform. Each loan is recorded as a triplet [borrower, lender, amount] where borrower and lender are non-empty strings and amount is a non-negative integer provided as a string.
Define each person's net debt as (total borrowed) - (total lent). A positive net debt means the person owes money overall.
...