You are viewing a single comment's thread. Return to all comments →
Thank you for this great explaination. But I have a question, what if the height of buildings decrease from left to right, for example:
5 4 3 2 1
I think to tackle this problem we use queue.
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 →
Thank you for this great explaination. But I have a question, what if the height of buildings decrease from left to right, for example:
5 4 3 2 1
I think to tackle this problem we use queue.