class Solution: def smallestRangeI(self, A: List[int], K: int) -> int: return max(max(max(A)-K,0)-(min(A)+K),0) 相关文章: 2022-12-23 2021-08-22 2022-02-07 2022-12-23 2021-10-16 2022-12-23 2022-12-23 2022-12-23