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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Which of the statements below is true? the formatting, standard, and drawing commands are unavailable. the formatting, standard, and drawing commands have been used. the formatting, standard, and drawing toolbars are displayed. the formatting, standard, and drawing toolbars are hidden.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
You know the right answer?
Write an algorithm to find who in the group has the smallest negative balance. Input:

...
Questions
Questions on the website: 13722359