Coding Interview Questions
A growing library of the most common coding interview questions, each with a plain-English problem restatement, the core idea behind the solution, and complexity analysis.
100 questions across 12 topics.
Arrays & Hashing
Two Pointers
Sliding Window
Stack
Binary Search
Linked List
Trees
- Validate Binary Search TreeMedium
- Same TreeEasy
- Binary Tree Level Order TraversalMedium
- Maximum Depth of Binary TreeEasy
- Construct Binary Tree from Preorder and Inorder TraversalMedium
- Balanced Binary TreeEasy
- Binary Tree Maximum Path SumHard
- Binary Tree Right Side ViewMedium
- Invert Binary TreeEasy
- Kth Smallest Element in a BSTMedium
- Lowest Common Ancestor of a Binary Search TreeMedium
- Serialize and Deserialize Binary TreeHard
- Diameter of Binary TreeEasy
- Subtree of Another TreeEasy
- Count Good Nodes in Binary TreeMedium