Computer Science, asked by arunrak03, 4 months ago

How to attempt?
Question :
Write a program to find the maximum difference between two adjacent numbers in an array of positive
integers.​

Answers

Answered by mrravichandran988
1

Answer:

Recently I've been assigned a task which asks to me to "calculate the maximum difference between two adjacent numbers in the array that is passed to it". I'm fairly new to Java (I have only done VB in the past) and since this topic was not well explained to me, I'm not quite sure how to go about it.

Here is some additional information about the task itself:

The function has to pass the following test. The function maxDiff should calculate the maximum difference between two adjacent numbers in the array that is passed to it.

Explanation:

it's a simple question

Similar questions