
Given an array of integers, determine the magnitude spread, defined as the difference between the largest and smallest values present within the collection.
Explanation: The maximum value is 31 and the minimum value is 2. The spread is 31 - 2 = 29.
Explanation: The maximum value is 12 and the minimum value is -5. The spread is 12 - (-5) = 17.
Access the full code editor, ThinkBuddy AI hints, and track your progress.