[LeetCode] 1325. Delete Leaves With a Given Value 删除给定值的叶子结点

Given a binary tree root and an integer target, delete all the leaf nodes with value target. Note that once you delete a leaf node with value target, 
posted @ 2023-01-03 19:16  Grandyang  阅读(120)  评论(0编辑  收藏  举报
Fork me on GitHub