Answer to Question #310283 in Python for Mock test 2a

Question #310283

Area of Largest Rectangle in Histogram



Input



215623

1
Expert's answer
2022-03-13T15:10:48-0400
def max_hist(*tups):
    list1 = []
    for tup in tups:
        prod = tup[0] * tup[1]
        list1.append(prod)
    return max(list1)
max_hist((1,2), (3,4), (4,5))
20

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS