Why am i unable to pass the test cases


plz help me find the appropriate solution for this problem

hello @manav_sharma

a) u need to sort the activites based on their ending time,
also becuase sorting is required, dont use two array instead use pair .

b) call the function for every test case, u r calling outside the for loop, that too only once
refer 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.