https://online.codingblocks.com/player/17479/content/10336/5014
Where is the prblm??
Pls provide me the test case where it fails
Maximum Circles 2
@kunalarora123
This submission can only be accessed by you. Please share your code using ide.codingblocks.com .
@kunalarora123
You are being provided the centers and radii or the circles , not their starting and ending points.
Use the center and radius to find the starting and ending points of the circles , sort the vector of pairs according to the ending points and then do the remaining part.
Pls debug my code i know centre and radii are given.
My code passed for 4 test cases.
Pls provide the test case which falis
Pls explain me why the output has to be 3
@kunalarora123
We will be choosing three circles ,
- Center at 1 , Radius = 2
- Center at 4 , Radius = 1
- Center at 100 , Radius = 2
If we pick any other circle , they would start overlapping which would give us wrong output.
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.