Search⌘ K
AI Features

Height of Binary Tree After Subtree Removal Queries

Height of Binary Tree After Subtree Removal Queries asks you to report the binary tree's height after removing the subtree rooted at each queried node. Treat queries independently and measure height in edges.

Statement

We are given the root of a binary tree with ...