【Leetcode】1038. Binary Search Tree to Greater Sum Tree(二叉树求和)

Given the root of a binary search tree with distinct values, modify it so that every node has a new value equal to the sum of the values of the original tree that are greater than or equal to node.val
相关文章
相关标签/搜索