Painter partition problem

test case 3 and test case 4 failing ??
plz tell the reason for it…

use long long int instead of int

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

plz reply to this doubt of mine as well…i want to clear it plz reply

the doubt is already taken up by another TA
u can now get help from him