unable to figure out.
logic calculate avg by sum of the array divided by total no of students;
now we sum summing till the sum become equal to or greater than the avg or the no of books left should be atleast equal to the no of students left
READ THE PAGES one test case failing
watch this video
it would be great if you could find mistake in my approach
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.