Painters partition ' s problem

https://hack.codingblocks.com/app/practice/1/1057/problem

I have passed 4 test cases but I am not able to pass 2 more test cases

bro what on earth are u doing in this code

this is a simple binary search q
can u have applies i dont know how many for loops
can u explain me the approach


somthing similar to this has to be done
1 Like

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.