Please explain the reason behind saying min can be 40

how we can take min no. of pages as 40 in which case is he saying this

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

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!

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.