Skip to content

Commit 31d6fd4

Browse files
authored
To make 2 lists of integers equal with min increment
1 parent cdbab20 commit 31d6fd4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

makeEqual.py

+8
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)