Q1 : Largest Area in Histogram with one extra constraint in orginal question you included equal heights bars in the area calculation here you had to avoid that
Q2 : Similar to LC 1094 with large constraints expected O(N) solution