Question: Problem 2: There are two circles A and B with their centres C1(x1,y1) and C2(x2,y2) and radius R1 and R2. The task is to check


Problem 2: There are two circles A and B with their centres C1(x1,y1) and C2(x2,y2) and radius R1 and R2. The task is to check both circles A and B touch each other or not. Input: C1=(3,4) C2=(14,18)R1=5,R2=8 Output: Circles do not touch each other. Input: C1=(2,3) C2=(15,28)R1=12,R2=10 Output: Circles intersect with each other. With the implementation below, can you propose 2 optimizations to improve runtime? No executable code is required for justification
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
