Path Sum
Path Sum题目Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equ
Path Sum题目Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equ
Minimum Depth of Binary Tree题目Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path
Balanced Binary Tree题目Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as
Convert Sorted Array to Binary Search Tree题目Given an array where elements are sorted in ascending order, convert it to a height balanced BST
Binary Tree Level Order Traversal II题目Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left t
Construct Binary Tree from Inorder and Postorder Traversal题目Given inorder and postorder traversal of a tree, construct the binary tree. Note
Construct Binary Tree from Preorder and Inorder Traversal题目Given preorder and inorder traversal of a tree, construct the binary tree. Note:
Maximum Depth of Binary Tree题目Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path f
Binary Tree Zigzag Level Order Traversal题目Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left
Binary Tree Level Order Traversal题目Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, leve