Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
55
:
47
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.
...