puzzles/local-peaks/README.md
Zoé Cassiopée Gauthier 7e4f02547b Initial commit
2024-04-02 17:01:09 -04:00

424 B

Local peaks

Puzzle from the rendezvous with cassidoo newsletter from November 8th, 2021.

Given an array of integers, return the index of each local peak in the array. A "peak" element is an element that is greater than its neighbors.

Solution posted at https://gist.github.com/zoeisnowooze/f8f8829283fff597dd5607cb6f432127