Only two test cases are passing


please tell the mistake so that i can rectify it

hey there are a lot of updates required in the code

i have attached this code
please have a look

can you please tell only where i m doing mistake or what i am missing.

s is pointing to the wrong number it needs to be at the max of the array
e= sum of all values

in the isPossible function dont pass the time paramter u`ll have to do mod
just use t in the end

" Just use time while computing the answer"

@J20APPPP0006
please make the changes i have told u here

yes, the moment i changed my start to maxt it passed all test cases but can you tell that what difference it makes if i start my start variable from 1 rather than (maxt)as it just increases the search space ,so ideally it should get correct ans in that case too ?

we need to tell the min time in which all the painter can complete the work

eg:
4 board and 4 painter
time for each board is
10 30 40 50
so each painter gets one board,
even if the 1st painter complted his work in 10 unit time still has to wait for the person taking max time ie 50 min
so our search space starts from max element of array