Medium
Given an array nums and an integer target (the threshold), find the smallest positive divisor d such that the sum of ceil(nums[i] / d) over all elements is less than or equal to target. It is guaranteed that a valid divisor exists.
Input: nums = [1,2,5,9], target = 6 Output: 5
Input: nums = [44,22,33,11,1], target = 5 Output: 44