Maximum Circles Doubt

What is wrong with my code. It is showing first 2 test cases as wrong

Hello @avijuneja2007,

In the comparator function,
You have written the same return statement inside both if and else statement.

Corrected Code:

Hope, this would help.
Give a like if you are satisfied.

1 Like

Oh silly mistake! Thanks for helping!