We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Completely agree. The optimal solution requires using stacks (in the data structure sense) but it is by no means clear from the description of the problem that stacks should be used in the solution.
Cookie support is required to access HackerRank
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 →
Completely agree. The optimal solution requires using stacks (in the data structure sense) but it is by no means clear from the description of the problem that stacks should be used in the solution.