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. So Math.min(10, 1) will return 1.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.