Circles Relationship
Problem Overview
- Determine the relationship between two circles: Touching, Concentric, Intersecting, Disjoint-Outside, or Disjoint-Inside.
- Input: n strings each with XA YA RA XB YB RB; Output: array of relation labels.
- Circles share axis alignment: both centers on X-axis or both on Y-axis (not both); constraints: 1≤n≤5000, 0≤X,Y,R≤5000.
- Geometry domain; common coding interview problem and interview question from Ibm interviews.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
