Skip to content
DeepForgeby svx
All problems
EasyProbabilitypr-191

Throughput Bottleneck

Problem

Throughput of a pipeline is limited by its slowest stage. Return the minimum of the stage rates, and 0.0 for an empty list.

Hint

Throughput is a minimum over stages, not an average.

Test cases

case 1
in: [[10,5,8]]
expected: 5
case 2
in: [[3]]
expected: 3
case 3
in: [[]]
expected: 0
Starter codePython
def throughput_bottleneck(stage_rates):
    # Your code here
    pass

3 test cases · run your code against them in the editor