output is correct but not passing all the test cases
Maximum circles
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
Still not passing any test case