i m getting correct output but failing test case please tell me where i m going wrong
Painter partition problem
hello @poojadas408
a) use long long to avoid overflow
b) search space should be s=max _element_in_array * time
e= summation * time
c) ur checking function is not correct.
initilise time_taken with 0.
and u need to take summation i,e
i,e should be
time_taken+=a[i]*t;
take hint from this->

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.
