• + 0 comments

    Here is my Python solution! I think there was a mistake in the code where the function should take the width and the cases, not n and the cases.

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