Skip to content

[Code Addition Request]: [DSA: Stack] Add advanced stack-based problems (Rainwater Trapping, Asteroid Collision, Next Greater Element) to the repo #1580

Closed

Description

@snehap27

Have you completed your first issue?

  • I have completed my first issue

Guidelines

  • I have read the guidelines
  • I have the link to my latest merged PR

Latest Merged PR Link

#1517

Project Description

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.

Full Name

Sneha Pandey

Participant Role

GSSOC Contributor

Activity

  1. github-actions commented on Aug 2, 2025

    @github-actions

    🙌 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!

  2. added
    ContributorDenotes issues or PRs submitted by contributors to acknowledge their participation.
    Status: Assigned💻Indicates an issue has been assigned to a contributor.
    on Aug 3, 2025
  3. github-actions commented on Sep 3, 2025

    @github-actions

    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.

  4. github-actions commented on Sep 5, 2025

    @github-actions

    ✅ 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ContributorDenotes issues or PRs submitted by contributors to acknowledge their participation.Status: Assigned💻Indicates an issue has been assigned to a contributor.gssoc25level2stale

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions