For painter's partition , in hackerblocks half of the test cases are correct and half of them showing that it is incorrect . please check it

Link to my code : https://ide.codingblocks.com/s/229146

@Arnav7 First thing is you are not required to sort the boards array, their order matters because it is given in the question “Every painter can paint only contiguous segments of boards”.

Also as we will not gonna the sort the array so accordingly modify start in your code by taking it as maximum element in boards[] array.

Feel free to ask if anyother doubt in this.
Otherwise please mark it as resolved.