TRAINING CATEGORIES
TRAINING PROGRAMS
Difficulty Level: MEDIUM
Problem Statement:
Given an array, print the Next Greater Element (NGE) for every element.
Input:
arr[] = [ 15 , 42 , 6 , 18 ]
Output:
15 --> 42 6 --> 18 18 -- -1 42 -- -1
15 --> 42
6 --> 18
18 -- -1
42 -- -1
We use cookies to make interactions with our websites and services easy and meaningful. Please read our Privacy Policy for more details.