algos icon indicating copy to clipboard operation
algos copied to clipboard

Next Greater Element [Java]

Open SauravP97 opened this issue 6 years ago • 6 comments

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.

SauravP97 avatar Oct 28 '19 07:10 SauravP97

@iiitv/project-maintainers @yashshah2820 Can you please explain the problem statement a little bit ?

kavyatripathi avatar Aug 29 '20 12:08 kavyatripathi

Is it like for every element in an array find the next greater element ?

kavyatripathi avatar Aug 29 '20 13:08 kavyatripathi

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

AmanRaj1608 avatar Aug 29 '20 13:08 AmanRaj1608

I think this is a general problem, not an algorithm which should be added

others opinion @iiitv/project-maintainers ?

AmanRaj1608 avatar Aug 29 '20 13:08 AmanRaj1608

@iiitv/project-maintainers i would like to work on this issue

kavyatripathi avatar Aug 29 '20 13:08 kavyatripathi

@iiitv/project-maintainers I have created a PR. Please take a look.

kavyatripathi avatar Aug 30 '20 08:08 kavyatripathi