hey, the code works fine in local and cpp complier but not in coding blocks ide
Pivot of sorted and rotated array
hey @Rakshitgarg99 you are not taking input correctly instead of cin >> a[n], cin >> a[i] would come and if(s==e) print s and also print -1 in case the answer doesnt exist.
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.