摘要:
Binary Tree Preorder Traversal 题目链接 题目要求: Given a binary tree, return thepreordertraversal of its nodes' values. For example: Given binary tree{1... 阅读全文
摘要:
Binary Tree Level Order Traversal 题目链接 题目要求: Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, lev... 阅读全文
摘要:
题目链接 题目要求: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree i... 阅读全文
摘要:
题目链接 题目要求: Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number. An example is the root-to-leaf pat... 阅读全文
摘要:
题目链接 题目要求: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows:The left subtree of a nod... 阅读全文
摘要:
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 ... 阅读全文
摘要:
Symmetric Tree 题目链接 题目要求: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary ... 阅读全文