Question: Python!! Given an array length 1 or more of ints, return the differencebetween the largest and smallest values in the array. Note: thebuilt-in min(v1, v2)
Python!!
Given an array length 1 or more of ints, return the differencebetween the largest and smallest values in the array. Note: thebuilt-in min(v1, v2) and max(v1, v2) functions return the smalleror larger of two values.
big_diff([10, 3, 5, 6]) ? 7
big_diff([7, 2, 10, 9]) ? 8
big_diff([2, 10, 7, 2]) ? 8
Example
def big_diff(nums):
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
