Vertical Order Traversal of Binary Tree (LC Medium)
Asked in the Technical phone screen 1 stage.
Given the root of a binary tree, return its vertical order traversal. Nodes are grouped by column from left to right, and within each column they are ordered from top to bottom. If multiple nodes share the same row and column, order them by value.
Implement verticalTraversal(root) where root is the root node of a binary tree and the return value is a list of lists of integers.
def verticalTraversal(root):