Maximum circles

output is correct but not passing all the test cases

Hey @nmaurya760
None of the testcases are passing on my side

This is simple activity selection problem. Consider, for each circle, its beginning at and ending at . Now greedily select activities by sorting them according to their ending.

Check this :https://www.youtube.com/watch?v=XR_pnk0MfVg

Please check my code once i have tried this ques using activity selection problem only

Here did 4 changes in ur code : https://ide.codingblocks.com/s/345646

If you don’t understand then watch that video :slight_smile:

Still not passing any test case


Passing all on my side, please rechck :slight_smile: