โ† Amazon questions

Convert BST to Greater Sum Tree recursively and iteratively

Filed under Amazon

Convert a Binary Search Tree (BST) into a Greater Sum Tree where each node's value is replaced by the sum of all keys in the BST greater than or equal to the original key.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.