Available question text
Given two quad-trees representing n×n binary matrices, produce a quad-tree representing their cellwise logical OR. Recursively combine corresponding nodes by applying OR at leaves and otherwise merging child subtrees, collapsing to a leaf when all four children become uniform.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 558. Logical OR of Two Binary Grids Represented as Quad-Trees
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source