Top View of a Tree
Given a binary tree root, return the top view of the tree, sorted left-to-right.
Given a binary tree root, return the top view of the tree, sorted left-to-right.
You are given a list of strings mailboxes. Each mailbox is a list of strings, where each string is either "junk", "personal", "work". Go through each mailbox...
Given a binary tree root return a level order traversal of the node values.
Given a binary tree root, convert it to a singly linked list using level order traversal.
Given a binary tree root, return values of the nodes in each level, alternating from going left-to-right and right-to-left.
Given a binary tree root, return whether all leaves are at the same level.