Book allocation problem doubt


what is the logical error in this code ?

hey @chahatkumar, you should also check whether current configuration is valid or not.

i have used the condition :if (students >m) for that

hey @chahatkumar, that won’t work here because you will break out of loop. Please watch this lecture once and try to implement with that only https://youtu.be/Ss9ta1zmiZo

1 Like

hey @chahatkumar, please mark it as resolves if no further queries.