Next Greater Element [Java]
This issue is about Next Greater Element.
- [x] Issue Title is in the form
Algo/DS Name [Language]. - [x] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
- [x] This Algo/DS is worth adding to this repository.
- [x] Assign this issue to me (I want to work on this).
- [x] I ensure that I am not already assigned to 2 or more issues.
- [ ] I will send my PR only after I'm assigned to this issue by any maintainer.
- [x] I understand that I will be unassigned from this issue if I fail to send a PR for this within a week.
@iiitv/project-maintainers @yashshah2820 Can you please explain the problem statement a little bit ?
Is it like for every element in an array find the next greater element ?
Yeah like giver an array [1,2,3,4,5] you have to tell every element which is greater than that value
For Ex - 1 -> 2 2 -> 3 3 -> 4 4 -> 5 5 -> -1
I think this is a general problem, not an algorithm which should be added
others opinion @iiitv/project-maintainers ?
@iiitv/project-maintainers i would like to work on this issue
@iiitv/project-maintainers I have created a PR. Please take a look.