practice_localMaxima/problem

4 lines
156 B
Text

Write a program that finds the local maxima of a list of integers.
A local maxima in a list is a number that is greater than or equal to adjacent
numbers.