You are viewing a single comment's thread. Return to all 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]
Seems like cookies are disabled on this browser, please enable them to open this website
Service Lane
You are viewing a single comment's thread. Return to all 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.