โ† Amazon questions

Convert BST to contain greater element sums

Filed under Amazon

Given a Binary Search Tree (BST), modify it so that every node contains the sum of all nodes greater than or equal to the current node in the original BST.

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.