Pivot of sorted and rotated array


not able to run the following code

@yutikakhanna
Hello Yutika,
a) add a check mid+1 <=ends in line no 8
b) add a check mid-1 >=start in line no 10
c) add check inside while loop if start==ends return start
d) also you need to output pivot index and not its value

pls tell in the form of a code.

@yutikakhanna
here is what i was telling to do- https://ide.codingblocks.com/s/177693
also refer this video tutorial for better clarity - https://codingblocks.com/resources/pivot-element/

the code is not running again

@yutikakhanna
its working pls hard refresh your tab.
just removed comment-https://ide.codingblocks.com/s/177748