service/searching/findAllPeakElements/find_all_peak_elements library

Functions

findAllPeakElements(List<int> list) List<int>
Finds all peak element indices in the list. A peak element is one that is not smaller than its neighbors. Returns list of all peak indices. Throws ArgumentError if list is empty.
main() → void