2025-plovdiv-testing-debugging/hands_on/local_maxima/local_maxima.py
2025-09-23 13:19:04 +03:00

15 lines
266 B
Python

def find_maxima(x):
"""Find local maxima of x.
Input arguments:
x -- 1D list of real numbers
Output:
idx -- list of indices of the local maxima in x
"""
return []
if __name__ == "__main__":
x = [1, 2, 3]
print(find_maxima(x))