910. Smallest Range II
https://leetcode.com/problems/smallest-range-ii/
Input: A = [1], K = 0
Output: 0
Explanation: B = [1]Input: A = [0,10], K = 2
Output: 6
Explanation: B = [2,8]Input: A = [1,3,6], K = 3
Output: 3
Explanation: B = [4,6,3]Thoughts
Code
Analysis
Last updated