← Questions

Horizontal line that splits the area of rectangles in half

0
GoogleCodingLast asked Jun 2026

Given axis-aligned rectangles, find the lowest horizontal line y = c for which the total rectangle area above the line equals the total area below it. Discuss how overlapping rectangles change the problem.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding