Note:
You are expected to write code in the findMaxDifference function only which
will receive the first parameter as the number of items in the array and
second parameter as the array itself. You are not required to take input from
the console
Example
Finding the maximum difference between adjacent items of a list of 5
numbers
Input
input1: 5
input2: 10 11 7 12 14
Output
Explanation
The first parameter (5) is the size of the array. Next is an array of integers
The difference between the integer 11 and 7 is 4 which is maximum
compared to any other adjacent numbers in the list as follows:
10-11-1
11-7-4
7-12=5
12-14--2
Answers
Answered by
0
Answer:
꧁☆GNANESH ☆꧂꧁☆GNANESH ☆꧂
Similar questions