Painter Partition Problem


My code is not running on some test cases and What are the corner cases that i am missing

dont sort the array,
because the painter cannot paint more than one continuous block

1 Like