• + 0 comments
    def serviceLane(n, cases):
        results=[]
        #here the cases array is an 2d array so we have to handle it properly 
        for j in cases:
             #here the 3 is the highest width so assign it to the m_w 
            m_w=3
            for i in range(j[0],j[1]+1):
                if width[i]<m_w:
                    m_w=width[i]
            results.append(m_w)           
        return results
        ``