This is the link to my code for this problem ā https://ide.codingblocks.com/s/334443
Iām getting the correct output for a lot of sample inputs that I tried from my side, but the code is not submitting.
Please help me spot out the discrepancy in this code.
What's wrong with my code
Hey @chaturvedia336
Failing for simple tc like this:
1
2
2 4
1 2
sort the array in increasing order of end times and it ill work fine 
Here is the code with the additional changes made ā https://ide.codingblocks.com/s/334443 . One test case is still failing