- You are given a number n, representing the count of elements.
- You are given n numbers.
- You are required to find the span of input.
- Note: Span is defined as difference of maximum value and minimum value.
Example 1:
Input: 6 15 30 40 4 11 9 Output: 36
Constraints:
1 <= n <= 10^4
0 <= n1, n2
.. n elements <= 10 ^9