sir, would you please provide some more examples and make me understand the question …
Not able to understand the question
@kodivine0 You are given a list of activities, with start and end time you need to select activities such that at one time there is only one activity you need, you need to select maximum amount of such activites.
is it necessary that the activities which we are selecting has the same time difference?
@kodivine0 No it is not necessary. Just make sure any two selected activities timing do not intersect.
Eg. 1-4, 3-10, 4-5, 5 -10
You cannot choose 1-4 along with 3-10 or 4-5 both intersect, but you can choose 1-4 and 5-10
Sir, why can’t we choose 4-5?
@kodivine0 we can choose that also here, this problems allows the ends to intersect.
with 1- 4 we can pick 4-5 , 5-10 , but not 3-10
If this resolves your doubt mark it as resolved.