摘要:
470. Tweaked Identical Binary Tree Check two given binary trees are identical or not. Assuming any number of tweaksare allowed. A tweak is defined as 阅读全文
摘要:
2. Min Stack Implement a stack with following functions: push(val) push val into the stack pop() pop the top element and return it min() return the sm 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
376. Binary Tree Path Sum Given a binary tree, find all paths that sum of the nodes in the path equals to a given number target. A valid path is from 阅读全文