Book allocation

problem:Book allocation my code: https://ide.codingblocks.com/s/395204
whats wrong in my code?

Hey @samardeep

but in the video he said we can take low(l) as 0 or max of array. but while submitting the code code, when i take low=0,the code dosen’t get submit?

If u want to take low as 0 then u have to add another condition in checking function
if pages u are alotting is < current page no then return false