Height of an N-ary Tree After Node Deletions
Given a rooted N-ary tree and a set of node values deleted, return the tree height after deleting those nodes under the following rule:
- When node
uis deleted, it is removed from the tree. - Al...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
