in the code of the program there is the isvalidconfig() part in which we divide pages of the books such that the total pages read by the student is less than ans and if total number of students required are equal to k(no of students) we do e = mid+1.
so my doubt is that there can be a possibility can the ans (maximum no of pages read by student) we found might not be read by any student (every student read less than ans)
Books allocation problem
hey @shiva57reddy, it is given in the question that Every student is assigned to read some consecutive books . So first assignment of books will be for student1 only then for second.