may i know why the minimum is taken as 40,as told in the video it can be 0 ,can we also take other values as minimum like- 10,20 ,30 ??/
if not why …
Minimum no of page is taken as 40
Hey @Ankur-Ankur-937479863269311 , you have to minimize the maximum number of pages that can be assigned to students.
if no of student is = to n(no of books) then each student read one book
and the maximum number of pages that can be assigned to students is through the book which has max pages means arr[n-1]
which is in this case is 40.
Moreover, The minimum possible answer cannot be less than maximum of given pages,
let n=5 and pages are 10,40,20,30 then answer cannot be less than 40,as atleast one of the students will be assigned that 40 page unit!
thanks and since the maximum is taken as 100 it means M=1.Is it?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.