Painters partition probleem

getting testcase error

you have done one mistake

s should be equal to maximum element and h should be equal to sum of all element

s=maximum;
e=sum;

still only one testcase is passing

also send the question link or exact name of problem

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

see this is the question.
https://hack.codingblocks.com/app/practice/1/1057/problem

what is t in your code??

t is not given in question

i have remove t and do the modification told above
it is passing all testcases

Modified Code

if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like :heart:: and don’t forgot to mark doubt as resolved :grinning:

1 Like