aboutsummaryrefslogtreecommitdiff
path: root/challenge-268/asherbhs/nu/ch-1.nu
blob: 91b36d38b253aec90d05b1df8f9b149f092565b7 (plain)
1
2
3
4
5
6
7
def magic-number [x: list<int>, y: list<int>] -> int {
	($y | math min) - ($x | math min)
}

print (magic-number [3 7 5] [9 5 7])
print (magic-number [1 2 1] [5 4 4])
print (magic-number [2]     [5])