Given an array nums and an integer threshold, find the smallest positive integer divisor such that the sum of ceil(nums[i]/divisor) for all i is <= threshold.
Binary search on divisor d in [1, max(nums)]. For each d, compute sum of ceil values. If sum <= threshold, try smaller d.
- lo=1, hi=max(nums).
- For mid, compute sum = sum(ceil(n/mid)) for each n.
- If sum <= threshold: hi=mid (try smaller).
- Else: lo=mid+1.
- Time Complexity: O(N log M) where M=max(nums)
- Space Complexity: O(1)