We have considered the array to be sorted in ascending order, what if its sorted in descending order?
Pivot Element search
Hey Kunaldeep, it can be done if array is sorted in descending order, you just have to reverse your checks.
We have considered the array to be sorted in ascending order, what if its sorted in descending order?
Hey Kunaldeep, it can be done if array is sorted in descending order, you just have to reverse your checks.