Perform a vertical order traversal on a tri-nary tree (a tree where each node can have up to three children: left, middle, right). Group nodes by their horizontal distance columns.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.