Dsa
Math
Hard
Circle Area Intersection
Given the centers and radii of two circles, calculate the area of the intersection of these two circles. The input will consist of two lines: each line will contain three space-separated floats representing the x-coordinate, y-coordinate of the center, and the radius of the circle, respectively. Print the area of the intersection formatted to 4 decimal places.
Example input:
0 0 3
1 1 3
Example output:
9.0614
Key concepts
geometrymathalgorithms
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now