# LC2951 Find the Peaks
Practice note for coding interviews.
Scan i=1..n-2 and collect indices where mountain[i] is strictly greater than both neighbors.
Discuss edge cases and complexity in the mock interview.
I used [AI coding interview assistant](https://www.linkjob.ai/coding-interview-copilot/) while rehearsing this pattern aloud.
Disclosure: personal study notes mentioning a practice tool.
I used [AI coding interview assistant](https://www.linkjob.ai/coding-interview-copilot/) while rehearsing this pattern aloud.