The output is showing blank screen. The dry run on a few cases seems to be giving the right answer. Can you please guide me on what is being missed here?
Book Allocation Problem
Hello @akshaypkumar007
Your code doesn’t work on the below test case
1
6 6
1 2 3 4 5 6
Dry run to see where the issue is.
Also there should be an else condition at the end of if (in “search” function).
Let me know if you still need any help.
The output of the above testcase should be 6 right?
Yes the output for the above test case should be 6
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.