forked from FrontendFreaks/DSA-in-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquestion.txt
More file actions
72 lines (36 loc) · 3.29 KB
/
Copy pathquestion.txt
File metadata and controls
72 lines (36 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Sure, here are the binary tree questions along with their LeetCode links:
### Easy
1. Binary Tree Inorder Traversal: https://leetcode.com/problems/binary-tree-inorder-traversal/
2. Binary Tree Preorder Traversal: https://leetcode.com/problems/binary-tree-preorder-traversal/
3. Binary Tree Postorder Traversal: https://leetcode.com/problems/binary-tree-postorder-traversal/
4. Maximum Depth of Binary Tree: https://leetcode.com/problems/maximum-depth-of-binary-tree/
5. Symmetric Tree: https://leetcode.com/problems/symmetric-tree/
6. Path Sum: https://leetcode.com/problems/path-sum/
7. Invert Binary Tree: https://leetcode.com/problems/invert-binary-tree/
8. Diameter of Binary Tree: https://leetcode.com/problems/diameter-of-binary-tree/
9. Balanced Binary Tree: https://leetcode.com/problems/balanced-binary-tree/
10. Lowest Common Ancestor of a Binary Search Tree: https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
11. Same Tree: https://leetcode.com/problems/same-tree/
### Medium
1. Binary Tree Level Order Traversal: https://leetcode.com/problems/binary-tree-level-order-traversal/
2. Binary Tree Right Side View: https://leetcode.com/problems/binary-tree-right-side-view/
3. Construct Binary Tree from Preorder and Inorder Traversal: https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
4. Construct Binary Tree from Inorder and Postorder Traversal: https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
5. Binary Tree Zigzag Level Order Traversal: https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
6. Sum Root to Leaf Numbers: https://leetcode.com/problems/sum-root-to-leaf-numbers/
7. Flatten Binary Tree to Linked List: https://leetcode.com/problems/flatten-binary-tree-to-linked-list/
8. Binary Tree Maximum Path Sum: https://leetcode.com/problems/binary-tree-maximum-path-sum/
9. Find Bottom Left Tree Value: https://leetcode.com/problems/find-bottom-left-tree-value/
10. Lowest Common Ancestor of a Binary Tree: https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
### Hard
1. Serialize and Deserialize Binary Tree: https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
2. Recover Binary Search Tree: https://leetcode.com/problems/recover-binary-search-tree/
3. Binary Tree Cameras: https://leetcode.com/problems/binary-tree-cameras/
4. Binary Tree Maximum Path Sum II: https://leetcode.com/problems/binary-tree-maximum-path-sum-ii/ (Note: LeetCode does not have this exact problem; consider practicing asimilar problem like [Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum/))
5. Vertical Order Traversal of a Binary Tree: https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/
6. All Nodes Distance K in Binary Tree: https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/
7. Sum of Distances in Tree: https://leetcode.com/problems/sum-of-distances-in-tree/
8. Count Complete Tree Nodes: https://leetcode.com/problems/count-complete-tree-nodes/
9. Kth Smallest Element in a BST: https://leetcode.com/problems/kth-smallest-element-in-a-bst/
10. Smallest Subtree with All the Deepest Nodes: https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/
### Very Hard (by Akash Bansal):