Here how does minimum number of pages comes 40, it should be 10…doesn’t it??
Confusion in video
You need to calculate maximum number of pages assigned to each student must be minimum. So, the max in array is 40 and it should be assigned to one of the students and it can be the minimum if we are able to assign all other students pages less than 40. That is why, we are taking min as 40.
Hii can you explain it why it is wrong when we take zero instead of 40.
u will get the correct answer even if u will take 0.
No… Initially i was taking using a[0]…But i am not able to pass any test cases.
Please check this