You are viewing a single comment's thread. Return to all comments →
def largestRectangle(h): def checkR(number, index, h): counter = 0 for element in range((index +1), len(h)): if number <= h[element]: counter+=1 else: break return counter def checkL(number, index, h): counter = 0 for element in reversed(range(index)): if number <= h[element]: counter+=1 else: break return counter
Seems like cookies are disabled on this browser, please enable them to open this website
Largest Rectangle
You are viewing a single comment's thread. Return to all comments →