subject

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 ≤ le

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
When pasting an existing chart into a word document, you can choose to using the paste options button. a. paste the chart as a picture b. embed the chart c. add the chart while keeping the destination formatting intact d. insert the chart while keeping the source formatting intact
Answers: 1
question
Computers and Technology, 25.06.2019 18:00
When photographing a bird, you should try not to photograph the habitat in the background. a) true b) false
Answers: 2
question
Computers and Technology, 25.06.2019 19:30
Denise is creating a web page about rainforest animals. her friend has many photos of animals from a trip to brazil. denise wants to use some of those photos for her web page. which input device is best for transferring photos to her multimedia project? a. digitizing tablet b. keyboard c. graphic pad d. digital camera reset next
Answers: 1
You know the right answer?
Write an algorithm to find who in the group has the smallest negative balance. Input:

...
Questions
question
Mathematics, 01.08.2020 04:01