Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Next Greater Element (NGE).md #1833

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Create Next Greater Element (NGE).md #1833

merged 1 commit into from
Nov 5, 2024

Conversation

khurshed07
Copy link
Contributor

📥 Pull Request

Description

This pull request introduces a new feature that implements the Next Greater Element (NGE) algorithm for finding the next greater element for each element in an array. If there is no greater element to the right, the algorithm assigns -1. The implementation uses an efficient stack-based approach to optimize performance.

Fixes #1830

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

github-actions bot commented Nov 4, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible.). If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Copy link

github-actions bot commented Nov 4, 2024

⚡️ Lighthouse Report for the Deploy Preview of this PR 🚀

🔗 Site: Algo | Live Site

URL 🌐 Performance Accessibility Best Practices SEO 📊
/algo/ 🟡 64 🟢 96 🟡 71 🟡 86 📄
/algo/docs 🟡 51 🟢 96 🟡 75 🟢 100 📄
/algo/blog 🟡 67 🟢 92 🟢 96 🟡 86 📄

@ajay-dhangar ajay-dhangar added gssoc-ext Contributions made as part of GirlScript Summer of Code Extended Edition. level1 GirlScript Summer of Code | Contributor's Levels labels Nov 5, 2024
Copy link
Owner

@ajay-dhangar ajay-dhangar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ajay-dhangar ajay-dhangar merged commit afbaa8f into ajay-dhangar:main Nov 5, 2024
6 of 7 checks passed
Copy link

github-actions bot commented Nov 5, 2024

🎉🎉 Thank you for your contribution! Your PR #1833 has been merged! 🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc-ext Contributions made as part of GirlScript Summer of Code Extended Edition. level1 GirlScript Summer of Code | Contributor's Levels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Idea]: WANT TO ADD QUESTION "Next Greater Element (NGE) for every element in given Array" In STACK FOLDER
2 participants