algorithms.tutorialhorizon.com

Find the local minima in a given array | Algorithms

Given an array of integer write an algorithm to find the local minima. Local Minima: An element is considered as local minima if it is less than both of its neighbors (if neighbors exist).