Tree Levels After Node Deletions
CodingPhone, OnsiteSoftware EngineerReported Jun, 2026
Company question banks are included with the Insider plan.
You are given the root of a binary tree where each node value is a unique node ID, and an array toDelete containing node IDs to remove.
When a node is deleted, it is removed from the tree and its...