Finding number of elements that are greater than their neighbors in a list

element with left side smaller and right side greater leetcode
write a program to find the numbers which are greater than the given number from an array.
count the number of elements which are greater than any of element on right side of an array
7.6. lists: number of distinct elements
find all peaks in an array
convert array into zig-zag fashion
greatest smaller on left of every element in the array
find peak element in array in c