Sobes.tech
Junior — Senior

Finding any local minimum in an array

livecode

Task condition

Implement a function that takes an array of unique numbers and returns any local minimum — an element that is strictly less than its neighboring elements.

def find_local_min(arr):
    # your code
    pass