Maximum Circles Not Passing Testcases

Code Link: https://ide.codingblocks.com/s/94761
I’m getting wrong answers for all the testcases. Can you please point out my mistake.

@tomarvikas738 hey vikas I made some modification in compare and main function you can see this modified code.

Can you please explain the changes made?

@tomarvikas738 please dry run…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.