codezonediitj / pydatastructs

A python package for data structures and algorithms
https://pydatastructs.readthedocs.io/en/stable/
Other
199 stars 270 forks source link

Next greater element using stack #526

Closed Volcano-Dragon closed 1 year ago

Volcano-Dragon commented 1 year ago

Description of the problem

Hey, I want to add a famous algorithm used to find the next greater element using stack. Please assign me this issue in Python. Thank you!

Example of the problem

The first greater element in the array to the right of an element x is known as the Next Greater Element for that element. When there is no greater element for an element, the next greater element is treated as -1

References/Other comments

I would like to work on this project as a part of GSSoC 23. Please assign this issue to me.

Jasmineck commented 1 year ago

Hello @Volcano-Dragon I am familiar with this topic and believe I can do the task efficiently. Can you please assign this project to me with tag GSSOC'23 .