leetcode
2951. Find the Peaks
Solution code
Time complexity: O(n)
Space complexity: O(1)
Runtime 1 ms Beats 100.00% Memory 44.24 MB Beats 9.17%