Given the root of a binary tree, calculate the vertical order traversal. Each node at position (row, col) has its left and right children at positions (row + 1, col - 1) and (row + 1, col + 1) respectively. The traversal should be a list of top-to-bottom orderings for each column index, starting from the leftmost column to the rightmost. If there are multiple nodes in the same row and column, sort them by their values.
Click Run to execute sample tests.