Skip to content

Latest commit

 

History

History

1283.Find-the-Smallest-Divisor-Given-a-Threshold

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

1283.Find-the-Smallest-Divisor-Given-a-Threshold

典型的二分搜值。猜测一个divisor的答案k,如果所有nums[i]/k的商的和大于threshold,那么除数太小,说明需要往大猜;否则需要往小猜。