Problem maximum circles

TLE is occuring how to remove

@naveengupta
Since the constraints are high , you can only use a O(n) or O(n log n) approach. If you are using a O(n^2) approach , you will get a TLE.
Share your code using ide.codingblocks.com so I can have a look and suggest some modifications. You need to use a Greedy Algorithm for this problem so just get greedy.

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.