Doubt Book Allocation Problem

Is Book Allocation Problem the same as Painter’s Partition Problem because I copy-pasted the same code from the painter’s partition to check and it got accepted.

its the same concept