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
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案