Binary Tree Vertical Order Traversal
Question (LC.314)
Example
I: root = [3,9,20,null,null,15,7]
O: [[9], [3, 15], [20], [7]]
I: root = [3,9,8,4,0,1,7,null,null,null,2,5]
O: [[4], [9,5], [3,0,1], [8,2], [7]]Analysis

DFS Code
BFS Code
Last updated