X51: bigDiff

Given an integer array length of 1 or more, return the difference between the largest and smallest values in the array. Note that the built-in Math.min(v1, v2) and Math.max(v1, v2) methods return the smaller or larger of two values.

Your Answer:


Practice a different Java exercise


Your feedback will appear here when you check your answer.