Leetcode 908. Smallest Range I

class Solution:
    def smallestRangeI(self, A: List[int], K: int) -> int:
        return max(max(max(A)-K,0)-(min(A)+K),0)
原文地址:https://www.cnblogs.com/zywscq/p/10699675.html