i am unable to pass one test case?
Activity selection problem
@guptarahul3100 You simply tried to solve the problem greedily without doing any sorting or anything. So your approach is incorrect and you need to rethink this.
Hint : Sort the activities in increasing order of their finish times.
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.