Leetcode 0623. Add One Row to Tree
Posted on Tue 05 November 2024 in Leetcode • Tagged with binary-tree-manipulation, dfs
Question Link : https://leetcode.com/problems/add-one-row-to-tree/
Difficulty: Medium
Premium: False
Question
Given the root of a binary tree and two integers val and depth, add a row of nodes with value val at the given depth depth. Note that the root node is at depth 1. The adding rule …
Continue reading