LeetCode: https://leetcode.com/problems/convert-bst-to-greater-tree/
Convert a BST so each node contains the sum of all keys greater than or equal to it.
5
0
2
1
node
13
2
tree=[5, 2, 13]
sum=13
Step 1 / 3
Step 1:
Traverse in reverse inorder to accumulate suffix sums.
Pointers: node=2
Focus: select @ [2]
sum=13