Havent got the approach and whats happening here please help
Totally bounced off my head
hey @02.adarsh.99 in this problem you have been given n books and there are M students among which you have to divide this books.
division should be done in this way that when you have divided all the books and then when you count the number of pages a student has to read(from the book he has been assigned ) should be as minimum as possible.
for example- let number of book=4,and students M=2 and pages are 10,20,30,40
then you can divide books in following ways
1.{10}{20,30,40}–max-page=90
2. {10,20} {30,40}.-max-page=70
3{10,20,30} {40}max-page=60
etc.
here you can see we can divide in such a way that max any student has to read is 60 which is minimum among posssible ways.
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.