The code is showing results on ide but I guess I have missed some test cases
Activity selection problem
@saxena.anukrati15
Hey Anukrati, Here input given are not in sorted order. Consider this testcase
1
3
10 20
31 35
20 30
ans should be “3” but your code is giving just “2”. So first store start time and end time in array of pair and sort them according of start time. then apply the same algorithm
i have done this nd one test case is failing
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.