链接:https://ac.nowcoder.com/acm/contest/9004/A最小差值:排序+贪心 class Solution: def minDifference(self , a ): # write code here a = sorted(a) minDif = float("inf") for i in range(len(a) - 1): minDif = min(a[i+1] - a[i], minDif) return minDifTree IV:分层求...