puzzles/local-peaks/README.md

8 lines
424 B
Markdown
Raw Normal View History

2024-04-02 21:01:09 +00:00
# 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