Metamidfev. de 2026
In a given array, you have to find the local minimum. (any local minimum). Local minimum is the element which is less than or equal to its neighbour and for the 0th and last index it should be less than or equal to its one neighbour. The ask is to solve it in O(log n) complexity.