2 testcase are passing but one testcase is failing
Find the greater element
Hey @shashankmaheshwari054 it’s for a circular array. For input
4
8 2 3 6
Expected output is: -1 3 6 8
Yours is giving: -1 3 6 -1
can u correct me in my code
You have to change your approach, refer this
Code for the same is below
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.