tree1038专题

538. Convert BST to Greater Tree1038. BST to Greater Sum Tree(Leetcode每日一题-2020.09.22)

Problem Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST