can you please tell me more clearly that how did we take start as 40
Book allocation
We must start the search space from the maximum element in the array.
Suppose each student reads just one book.So the maxm pages a student can read is the book with the maximum number of pages. So going by the problem statement, search space must start from 40.
But even if you take the search space from 10, it will not create any difference in the final answer.
@aavaigrocks2001, In case of any doubt feel free to ask
Mark your doubt as RESOLVED if you got the answer
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.