Doubt doubt doubt

output kese decide ho raha h is question me ???

please explain with example.

hello @parth_tyagi

1
3
10 20
12 15
20 30

hame har ek acticity ki starting aur ending time di hui hai , ab hame maximum number of activities choose karni hai such that, kuch bhi activity kisi dusri activity se overlap na kare.

is case me agar [10,20] aur [20,30] acitivyt pick kare to ye ek dusre se overlap nahi kar rahe .
isiliye answer 2 hai

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.