โ† Walmart questions

Transform to Sum Tree variant

Filed under Walmart

Given a binary tree, transform it in-place such that each node's value is replaced with the sum of all node values in its right subtree only (excluding its left subtree and its own 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 Walmart questions

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