Open
Changes from all commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
# Given an array length 1 or more of ints, return the difference between the
# largest and smallest values in the array.
def big_diff(nums):
minimum = nums[0]
maximum = nums[0]

for i in range(1,len(nums)):
minimum = min(minimum, nums[i])
maximum = max(maximum, nums[i])

return maximum - minimum
return max(nums) - min(nums)