Write an algorithm to find who in the group has the smallest negative balance.
Input:
...
Computers and Technology, 23.08.2021 21:40, negativechill
Write an algorithm to find who in the group has the smallest negative balance.
Input:
The input to the function/method consists of three arguments:
numRows, an integer representing the number of debt records.
numCols, an integer representing th enumber of elements in debt records. It is always 3.
debts, a list of triplet representing debtRecord consisting of a string borrower, a string lender, and an integer
amount, representing the debt record.
Output:
Return a list of strings representing an alphabetically ordered list of members with the smallest negative balance.
If no team member has a negative balance then return a list containing the string "Nobody has a negative balance".
Constraints:
1 ≤ numRows ≤ 2*10^5
1 ≤ amount in debts ≤ 1000
1 ≤ length of borrower and lender in debts ≤ 20
borrower | lender | amount
Alex | Blake | 2
Blake | Alex | 2
Casey | Alex | 5
Bl
Answers: 1
Computers and Technology, 22.06.2019 07:00, candiceforever123
Idon understand these and need some ! ?
Answers: 2
Computers and Technology, 24.06.2019 10:00, zlittleton2008
Which feature of a blog to restore and retrieve older post
Answers: 3
Computers and Technology, 24.06.2019 10:40, 29delphina
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
Social Studies, 28.08.2021 14:00
English, 28.08.2021 14:00
Mathematics, 28.08.2021 14:00
Physics, 28.08.2021 14:00