Data-Structure-and-Algorithms icon indicating copy to clipboard operation
Data-Structure-and-Algorithms copied to clipboard

Create 011_Span_Of_Array

Open viveksoni2911 opened this issue 3 years ago • 0 comments

  1. You are given a number n, representing the count of elements.
  2. You are given n numbers.
  3. 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

viveksoni2911 avatar Oct 20 '22 06:10 viveksoni2911