Find all local minima in an array and return their indices.
Unlock detailed company stats for this questionUpgrade
A local minimum is an element whose left and right neighbours are equal to or greater than it. Example: input [3,5,1,4,7] gives indices [0, 2].
Community answers
No answers contributed by the community yet.


