Available question text
Delete the nodes whose values are in to_delete from a binary tree and return the roots of the resulting forest. The core challenge is traversing the tree to detach deleted nodes from their parents and collect any children that become new roots (use a hash set for fast membership checks).
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
Google
Leetcode 1110. Delete Nodes And Return Forest
Reported Sep 1, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source