We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdbab20 commit 31d6fd4Copy full SHA for 31d6fd4
makeEqual.py
@@ -0,0 +1,8 @@
1
+t = int(input())
2
+for i in range(t):
3
+ n = int(input())
4
+ x = list(map(int,input().split()))
5
+ x1 = max(x)
6
+ x2 = min(x)
7
+ s = x1 - x2
8
+ print(s)
0 commit comments