149. Range

Range=maxmin
Example
[1,2,3,4,5]
  • Step 1: Identify the Maximum and Minimum Values
max=5min=1
  • Step 2: Calculate the Range
Range=51=4