Regarding the provided test case

In the provided test case,

1

3

10 20

12 15

20 30

Why the person can do 0th and 2nd activity?Person can also choose the 1st and 2nd as these two are also non overlapping.

Although final answer remains the same but in explaination it is missing so is there any specific reason for not including the 1st and 2nd activity?

Hi @bhushan.mani72 you have to sort the activities according to ending time, and then greedily choose from them

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.