We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defserviceLane(n,cases):results=[]#here the cases array is an 2d array so we have to handle it properly forjincases:#here the 3 is the highest width so assign it to the m_w m_w=3foriinrange(j[0],j[1]+1):ifwidth[i]<m_w:m_w=width[i]results.append(m_w)returnresults``
Cookie support is required to access HackerRank
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 →