Tree Levels After Node Deletions II
CodingPhone, OnsiteSoftware EngineerReported Oct, 2026High Frequency
Examples
Example 1:
Input: root = [1,2,3], targetHeight = 1
Output: 1
Explanation:
Example 2:
Input: root = [1,2,3,4,5], targetHeight = 2
Output: 1
Explanation: