538. Convert BST to Greater Tree 題目敘述 Given the root of 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 the sum of all keys greater than the original key in BST. As ...

Markdown supported · ⌘↵ to post
No responses yet.