โ† Amazon questions
CodingReported in a candidate post, Jan 2010

Convert tree so nodes equal sum of children

Filed under Amazon

Convert any given binary tree into a tree where every node's value is updated to be the sum of its children (or descendants), modifying the tree structure in place.

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.