Maximum cirlces Doubt

my code is failing last 2 test cases

While sorting, you need to swap if first element is smaller than second element. But if you use inbuilt sort function, then it will swap if its less or equal to.

so make a comparator where you give it like this:


Just see the comparator function and imagine its sorting the thing that you are sorting