Problem 558 · Medium

Logical OR of Two Binary Grids Represented as Quad-Trees

Combine two compressed binary images with logical OR and return the compressed result. The visual splits both quad-trees into quadrants, lets a true region dominate, and merges equal quadrants back together.

Open the interactive visualisation