Question: Develop a method called FindDiff takes an array A of integers and returns the difference between the largest value and smallest value in the array.

 Develop a method called FindDiff takes an array A of integers

Develop a method called FindDiff takes an array A of integers and returns the difference between the largest value and smallest value in the array. We are assuming the length 1. You do not need to write the method main. For instance, FindDiff([1, 3, 2, 6, 10]) rightarrow 9 FindDiff([1, 6, 4]) rightarrow 5 FindDiff([5]) rightarrow 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!