When I am clicking submit, I am failing to pass the 0th test case, whereas I am getting the correct output in the 0th test case as my output matches with the output mentioned in the example.
In the Ques "FIND THE GREATER ELEMENT", I am failing 0th test case whereas my output is correct
hello @goyalyash1962
.u havent considered the fact that the array is circular
for ex->
3
3 2 1
the output shoulf be
-1 3 3
Sir, I have corrected that thing in my answer, but 0th test case is supposed to be the example mentioned in the question ,right?
…
no…it can be any random test case
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.