Skip to main content

7 docs tagged with "breadth-first-search"

View all tags

Binary Tree Column Order Traversal

Given a binary tree, return its column order traversal from top to bottom and left to right. Note: if two nodes are in the same row and column, order them from left to right.

Binary Tree Left Side View

Given a binary tree, return all the values you'd be able to see if you were standing on the left side of it with values ordered from top to bottom.

Binary Tree Level Order Traversal II

Given a binary tree, return its level order traversal where the nodes in each level are ordered from left to right, and the levels are ordered from bottom to top.