โ† Amazon questions

Convert Binary Search Tree to Greater Sum Tree

Filed under Amazon

Given the Root of a Binary Search Tree (BST), modify it so that every node has a new value equal to the sum of the values of all nodes in the BST that are greater than or equal to its original value.

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.