- Notifications
You must be signed in to change notification settings - Fork 3
previous greater element #16
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Activity
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers
For all elements of an array find the previous greater element. Implement using a stack. If no greater element exists then previous greater element is -1.