Given an arryay of length n and calculate the next greater element for each element in an array
Answers
Answered by
0
Answer:
Simple Approach: The next greater element in the array could be calculated using two loops where ... for(int i=0;i<n;i++) //selecting element whose next greater element is to be found ...
Answered by
0
Answer:
i don no answer ........
Similar questions