Data-Structure-and-Algorithms
Data-Structure-and-Algorithms copied to clipboard
Create 011_Span_Of_Array
- 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. Span is defined as difference of maximum value and minimum value.
Input Format A number n n1 n2 .. n number of elements
Output Format A number representing max - min