newton/solutions/plus_one_on_the_subset.py

7 lines
124 B
Python

t = int(input())
for _ in range(t):
n = input()
a = [int(n) for n in input().split(' ')]
print(max(a)-min(a))