โ† Expedia questions

Vertical order sum of binary tree

Filed under Expedia

Given a binary tree, calculate the sum of all nodes at each vertical column. The vertical distance of the root is 0, left child is -1, and right child is +1.

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 Expedia questions

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