Histogram Area Doubt

iske alawa koi approach hai is question ko solve krne ki , and this what bhaiya had explained is the algorithm for these types of problems??

and how Do we approach a new problem like this?

are you talking about histogram area problem?
i asked you this because you have asked your doubt on ‘dnf sort problem’

which approach you are using??