Book allocation. Pleases tell

How the upper limit of binary search is taken?
for upper limit as 100 pages only 1st student will read all the books and 2nd will not read any of the books which is violating the given constraint of reading at least one book

hi @shivashuklamfk_ac4f36cbded466ba, u can take a big value and this will happen (2nd will not read any of the books which is violating the given constraint of reading at least one book) but since u r checking whether u can reduce the upper limit and hence minimize the end to check if its possible which will then automatically take in the second student also (say i reduced 100 to 60 now second will come right???)

1 Like

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.