[C#II] The First Biggest Than Neighbours

Write a method that returns the index of the first element in array that is bigger than its neighbors, or -1, if there’s no such element. ­Use the method from the previous exercise.(Bigger Than Neighbors)

Leave a comment