摘要:
97. 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 from the 阅读全文
摘要:
175. Invert Binary Tree Invert a binary tree. Example Example 1: Input: {1,3,#} Output: {1,#,3} Explanation: 1 1 / => \ 3 3 Example 2: Input: {1,2,3,# 阅读全文
摘要:
469. Same Tree Check if two binary trees are identical. Identical means the two binary trees have the same structure and every identical position has 阅读全文
摘要:
480. Binary Tree Paths Given a binary tree, return all root-to-leaf paths. Given a binary tree, return all root-to-leaf paths. Given a binary tree, re 阅读全文
摘要:
481. Binary Tree Leaf Sum Given a binary tree, calculate the sum of leaves. Given a binary tree, calculate the sum of leaves. Given a binary tree, cal 阅读全文
摘要:
482. Binary Tree Level Sum Given a binary tree and an integer which is the depth of the target level. Calculate the sum of the nodes in the target lev 阅读全文