Given an integer array nums and an integer threshold, find the smallest positive integer d such that the sum of ceil(nums[i] / d) is ≤ threshold.
nums
threshold
d
ceil(nums[i] / d)
Example: nums = [1,2,5,9], threshold = 6 → 5.
nums = [1,2,5,9]
threshold = 6
5