← Amazon questions
CodingReported in a candidate post, Aug 2022

Transform BST to Greater Sum Tree

Filed under Amazon · Also reported at FactSet, OYO

Transform a Binary Search Tree (BST) into a Greater Sum Tree where each node's value is replaced by the sum of all node values in the original BST that are greater than the original node's 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.