Help needed....standard DP,Backtracking Problem

Hey, there is problem called as :- Allocate Minimum Number of pages/ Painter Partition Problem(that solution got AC) on GFG in your question.
But that’s wrong, as there is a condition (in Allocate Minimum Number of Pages) that partition must be continous, which is not given for your question(I think moderator might forget to mention that)