Math, asked by Aryan27041, 1 year ago

Find adjacent elements such that element next is greater

Answers

Answered by Anonymous
0

Answer:

Given an array, print the Next Greater Element (NGE) for every element. The Next greater Element for an element x is the first greater element on the right side of x in array. Elements for which no greater element exist, consider next greater element as -1.

Similar questions