Error detection

sol: https://ide.codingblocks.com/s/390767
prob: https://hack.codingblocks.com/app/contests/1975/1348/problem

it is working for the test cases to the right side of 7 but not for the left ones
7
4 5 6 7 0 1 2
0

Hello @raghav007 what is the error that you are facing?
please wait i am checking your code.

hi did you check it ?

Hello @raghav007 yes this is the correct code:


i have commented the mistake.
Happy Learning!!

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.