Maximum circles (not passing 5 testcases )

@Saksham12
hello saksham,
this question is very similar to activity selection problem.

from each given circle with radius® and center © , find left most coordinate on x axis on circle it will be c-r similarly find right most coordinate it will be c+r . store each left and right coordinate as pair in array and then apply activity selection approach.

my code is not passing 2 testcases

@Saksham12
hello saksham,
in ur compare function it shuld be
return p1.second < p2.second