Concept Flow - Allocate Minimum Pages Binary Search on Answer
Set low = max(pages)
→Set high = sum(pages)
While low <= high
Calculate mid = (low + high)//2
Check if allocation possible with mid
Update high = mid-1
Repeat loop
Return low as minimum max pages
We use binary search on the range of possible max pages to find the minimum max pages that can be allocated to students.
