educative.io

Educative

Divide and conquer does not give the first peak element

Divide and conquer solution for the peak element does not give the first peak element , although it is guaranteed to return a peak element . one peak element (preferably the first hit while searching) , this condition is missed