Question: Write a method named findRange that accepts an array of integers as a parameter and returns the range of values contained in the array, which
Write a method named findRange that accepts an array of integers as a parameter and returns the range of values contained in the array, which is equal to one more than the difference between its largest and smallest element. For example, if the largest element is and the smallest is the range is If the largest and smallest values are the same, the range is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
