Skip to content
</>
PrepKit
Coding
▾
Problems
NeetCode 150
Patterns
Playground
Cram
System Design
Behavioral
Learning
Notes
Reference
▾
Cheat Sheets
C++ Reference
Timeline
📊
Dashboard
🔍
Search
/
🌙
☀️
☰
Coding
▾
Problems
NeetCode 150
Patterns
Playground
Cram
System Design
Behavioral
Learning
Notes
Reference
▾
Cheat Sheets
C++ Reference
Timeline
Dashboard
Patterns
/
Trees
Trees
Recursive DFS and level-order BFS over binary trees and BSTs.
18 problems
7 Easy
9 Medium
2 Hard
Problems
○
20.
Diameter of Binary Tree
Easy
Trees
⏱ O(N)
▦ O(H)
NC150
○
98.
Validate Binary Search Tree
Medium
Trees
⏱ O(N)
▦ O(H)
NC150
○
100.
Same Tree
Easy
Trees
⏱ O(N)
▦ O(H)
NC150
○
102.
Binary Tree Level Order Traversal
Medium
Trees
⏱ O(N)
▦ O(W)
NC150
○
104.
Maximum Depth of Binary Tree
Easy
Trees
⏱ O(N)
▦ O(H)
NC150
○
105.
Construct Binary Tree from Preorder and Inorder Traversal
Medium
Trees
⏱ O(N)
▦ O(N)
NC150
○
110.
Balanced Binary Tree
Easy
Trees
⏱ O(N)
▦ O(H)
NC150
○
111.
Minimum Depth of Binary Tree
Easy
Trees
⏱ O(N)
▦ O(H)
○
116.
Populating Next Right Pointers in Each Node
Medium
Trees
⏱ O(N)
▦ O(1)
○
124.
Binary Tree Maximum Path Sum
Hard
Trees
⏱ O(N)
▦ O(H)
NC150
○
199.
Binary Tree Right Side View
Medium
Trees
⏱ O(N)
▦ O(H)
NC150
○
226.
Invert Binary Tree
Easy
Trees
NC150
○
230.
Kth Smallest Element in a BST
Medium
Trees
NC150
○
235.
Lowest Common Ancestor of a Binary Search Tree
Medium
Trees
NC150
○
297.
Serialize and Deserialize Binary Tree
Hard
Trees
⏱ O(n)
▦ O(n)
NC150
○
298.
Binary Tree Longest Consecutive Sequence
Medium
Trees
⏱ O(N)
▦ O(H)
○
572.
Subtree of Another Tree
Easy
Trees
⏱ O(N*M)
▦ O(H)
NC150
○
1448.
Count Good Nodes in Binary Tree
Medium
Trees
NC150
🔍
Esc
No matches.
↑
↓
navigate
↵
open
esc
close