What is the issue with my code?

You should first store the pair of centre-radius and centre+radius and sort it accoriding to centre+radius in increasing order

i dint understand that. Is my logic incorrect? 4 test cases are working but 2 arent

You have to count maximum circles. Your logic do not ensure that u get always maximum circles.

The question says minimum circles

oh okay sorry. Got it