Maximum circles


Can you pls tell why my code isn’t passing two of the testcases. Pls tell what I am not considering

@Tushar-Goel-1587999611286693 hey I have made changes to your code,please see to it:

Is this question also to be treated like activity selection problem, where the circles that end first are given preference

@Tushar-Goel-1587999611286693 hey we have sort according to end points ,please check the code.