Pivot element problem

sir in which case pivot element doesn’t exist as written in the last line of the code
and also sir whal will be pivot element in the array {9,9,9,9,9,9,9}

In case of your question when the array is {9,9,9,9,9,9,9}, the code will compile successfully but wont display any output, because of unambigious input, … and also when start > end, or you can say the search space ends… then you cannot determine the pivot element…

mam can you give any example where we can’t determine pivot element

You cannot find the pivot element in case of same array elements, for eg
{9,9,9,9,9,9,9}…
You can refer to this code,

Since,you arent replying anything, I am marking this doubt as resolved… You can reopen it if u face any issues…