摘要: 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 阅读全文
posted @ 2019-04-06 16:12 IreneZh 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 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,# 阅读全文
posted @ 2019-04-06 15:14 IreneZh 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-04-06 14:42 IreneZh 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-04-06 14:27 IreneZh 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-04-06 13:08 IreneZh 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-04-06 12:54 IreneZh 阅读(152) 评论(0) 推荐(0) 编辑