service/searching/findAnyPeakElement/find_any_peak_element library

Functions

findAnyPeakElement(List<int> list) int
Finds any peak element index in the list. A peak element is one that is not smaller than its neighbors. If multiple peaks exist, returns any one of them. Throws ArgumentError if list is empty.
main() → void