You are viewing a single comment's thread. Return to all comments →
try for this input:- 2 3 2 5 1 4 4 1 4 4
Output should be 10. If we use stack based solution, it will give 8.
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 →
try for this input:- 2 3 2 5 1 4 4 1 4 4
Output should be 10. If we use stack based solution, it will give 8.