You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Code Addition Request]: [DSA: Stack] Add advanced stack-based problems (Rainwater Trapping, Asteroid Collision, Next Greater Element) to the repo #1580
I would like to contribute implementations (with explanations and test cases) of the following advanced stack problems:
Trapping Rain Water
LeetCode #42 – Using a monotonic stack or two-pointer approach.
Asteroid Collision
LeetCode #735 – Using stack simulation for handling collisions.
Next Greater Element (I & II)
LeetCode #496 and #503 – Efficient use of a monotonic stack.
These problems are frequently asked in tech interviews and help build intuition around stack questions.
Since I'm currently learning DSA, this will help me test my concepts better by writing quality code that is easy to understand for others also.
✅ This issue has been closed. Thank you for your contribution! If you have any further questions, feel free to join our community on Discord to discuss more!
Activity
github-actions commentedon Aug 2, 2025
🙌 Thank you for bringing this to our attention! We appreciate your input and will investigate it as soon as possible.
Feel free to join our community on Discord to discuss more!
github-actions commentedon Sep 3, 2025
This issue is stale because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.
github-actions commentedon Sep 5, 2025
✅ This issue has been closed. Thank you for your contribution! If you have any further questions, feel free to join our community on Discord to discuss more!