0314. Binary Tree Vertical Order Traversal
https://leetcode.com/problems/binary-tree-vertical-order-traversal
Description
Given the root of a binary tree, return the vertical order traversal of its nodes' values. (i.e., from top to bottom, column by column).
If two nodes are in the same row and column, the order should be from left to right.
Example 1:

Example 2:

Example 3:

Example 4:
Constraints:
The number of nodes in the tree is in the range
[0, 100].-100 <= Node.val <= 100
ac
Last updated
Was this helpful?