Please tell me why I am not getting output…
Book Allocation Problem
@G_rahil
There are lot of mistake in your code. I am pointing out them
- At the end of ispossible() function return true.
- In find_page() function, check line 37 it should be ans=mid;
- return ans; at the end of find_page() function
- For each testcase print output in new line. So, Change line 56 to cout<<find_pages(arr,n,m)<<endl;
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.