标签: traversal
-
513-Find-Bottom-Left-Tree-Value
Given a binary tree, find the leftmost value in the las…
-
leetcode508-Most-Frequent-Subtree-Sum
Given the root of a tree, you are asked to find the mos…
-
leetcode501-Find-Mode-in-Binary-Search-Tree
Given a binary search tree (BST) with duplicates, find …
-
leetcode498-Diagonal-Traverse
其实这道题目不难,只要捋清楚一些边界的场景即可。自上而下遍历数组时,一定是自右往左移动的,因此下标移动的方向为…
-
[LeetCode] 617. Merge Two Binary Trees
Given two binary trees and imagine that when you put on…