Activity Selection process

How to solve this problem? I am not able to get how activities are assigned. Please use pairs to solve.

hello @1ms18im021

the idea for this problem is simple.
u always need to pick that activity which has less finish time ,it is becuase then we will have more time to finish other activites.

so first sort the acitivities based on the ending time.
and then pick activitiy which has least ending time and then pick next acivitiy which has starting time more than ending time of last picked
and repeat the same on remaining activities

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.