Welcome
This page contains solutions to common interview problems that may be encountered.
Arrays
- Longest Substring Without Repeating Characters
- Rotate a 2D Matrix
- Buy/Sell Two Stocks
- Merge Intervals
- Next Permutation
- Random Permutation
- Replace all occurrences of a space with a string
Linked Lists
- Reversing sublists of singly linked lists
- Cycles in singly linked lists
- Overlapping singly linked lists
- Merging two sorted singly linked lists
- Merge k sorted lists
Recursion
Dynamic Programming
Binary Trees
- Tree Symmetry
- Iterative In-Order Traversal of a Binary Tree
- Construct a Binary Tree from Pre-Order Traversal and In-Order Traversal