This is my code. I am getting test case 1and 2 correct only but when I do sort the boards array it gives test case 4 and 5 correct but that doesn’t make sense.
also why are other test cases wrong couldn’t figure out.
Painter partition probelm
just give me 10 minutes i am debugging the code
added comments
main updated:
change int to ll constraints are large
do not sort
find s as maximum of all elements in array
Resolved .Thanks a lot
1 Like