← 返回 meta 的题目列表Binary Tree Vertical Order Traversal Variant
类型:online_judge
Given a binary tree, output its nodes' vertical order variant. Nodes should be weighted. In the given example, calculate the weight for each column and sort by weight.
Example
Input
1
2 3
4 5 6 7