• + 0 comments

    n should be replaced with width. then:

    def serviceLane(width, cases): return [min(width[c[0]:c[1]+1]) for c in cases]