hash-define-organization / Hacktober-Fest-2021

Repository for community contributions
19 stars 98 forks source link

Next Greater Element-II and Largest Rectangle in Histogram Leetcode problems on Stack Data Structure #294

Open theoopsguy opened 2 years ago

theoopsguy commented 2 years ago

I can add code for Next Greater Element - II and Largest Rectangle in Histogram Leetcode problems based on Stack Data Structure in C++. The questions belong to Medium and Hard difficulty level on Leetcode respectively and provide a good understanding of stacks.

https://leetcode.com/problems/next-greater-element-ii/ image

https://leetcode.com/problems/largest-rectangle-in-histogram/ image

VaibhavPaliwal0007 commented 2 years ago

Okay assigned!! Do explain the approach in a seperate file.