Given an array of integers, find the indices of all peak elements where an element is strictly greater than both its adjacent neighbors, excluding the first and last elements.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.