cant understand the question and the test case …pls help
Cant understand the question and the test case
@ANIKET_DALAL hey aniket the question demand for the next greater element present in the array like the array given as 1 2 3
so the greatest element in the respect to 1 is 2 and after that 3 and there is no greater element present after 3 so ans would be -1 as given the question.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.