NeetCode #464LC-1110MediumTrees
← Back to All Problems

#464 · #1110 · Delete Nodes And Return Forest(删点成林)

📌 Problem Statement & Constraints

Given the root of a binary tree and an array to_delete of values to remove, delete those nodes and return the roots of the resulting forest. Constraints: the number of nodes is in [1, 1000], 1 <= Node.val <= 1000; values are distinct.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!