This question .. i want to know where i am going wrong

I have taken input as 2d array and what i have done is ran two loops in which i am selecting a work at a time and iterating it over all other to know what other work can be done and if a condition satisfies then i change the ongoing time to next time

also at times it aint running

hello @hunter001

sort activities by ending time and then it will work.

also try to optimise it furthur.

ok i got it thank you

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.