Challenge 7: Next Greater Element Using a Stack
Using a stack, can you implement a function to find the next greater element after any given element in an array?
We'll cover the following...
Problem statement
You must implement the int [] nextGreaterElement(int [] arr, int size)
function. For each ...