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

8 lines
424 B
Markdown

# Local peaks
Puzzle from the [rendezvous with cassidoo](https://buttondown.email/cassidoo/archive/we-cannot-direct-the-wind-but-we-can-adjust-the/) 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