Also reported as Build a QuadTree · Quadtree Image Compression
Uber coding question, reconstructed from 6 candidate reports (October 2025 to June 2026). Candidates reported 3 follow-ups. The write-up includes a Python solution that passes 9 test cases.