Coding interviews
two-pointers
- Container With Most Water
- Two Sum (Sorted Array)
- 3-Sum
- Triangle Numbers
- Move Zeroes
- Sort Colors
- Trapping Rain Water
sliding-window
- Maximum Sum of Subarrays of Size K
- Max Points You Can Obtain From Cards
- Max Sum of Distinct Subarrays Length k
- Longest Substring Without Repeating Characters
- Longest Repeating Character Replacement
intervals
stack
- Valid Parentheses
- Decode String
- Longest Valid Parentheses
- Daily Temperatures
- Largest Rectangle in Histogram
linked-list
- Linked List Cycle
- Palindrome Linked List
- Remove Nth Node From End of List
- Reorder List
- Swap Nodes in Pairs
binary-search
- Apple Harvest (Koko Eating Bananas)
- Search in Rotated Sorted Array
- Split Array Largest Sum
- Kth Smallest Element in a Sorted Matrix
- Minimum Shipping Capacity
heap
- Kth Largest Element in an Array
- K Closest Points to Origin
- Find K Closest Elements
- Merge K Sorted Lists
- Find Median from Data Stream
depth-first-search
- Maximum Depth of Binary Tree
- Path Sum
- Validate Binary Search Tree
- Calculate Tilt
- Diameter of a Binary Tree
- Path Sum II
- Longest Univalue Path
- Copy Graph
- Graph Valid Tree
- Flood Fill
- Number of Islands
- Surrounded Regions
- Pacific Atlantic Water Flow
breadth-first-search
- Level Order Sum
- Rightmost Node
- Zigzag Level Order
- Maximum Width of Binary Tree
- Minimum Knight Moves
- Rotting Oranges
- 01-Matrix
- Bus Routes
backtracking
graphs
- Course Schedule
- Course Schedule II
- Network Delay Time
- Cheapest Flights Within K Stops
- Path With Minimum Effort
- Find City with Fewest Reachable
dynamic-programming
- Counting Bits
- Decode Ways
- Unique Paths
- Maximal Square
- Longest Increasing Subsequence
- Word Break
- Maximum Profit in Job Scheduling
- Paint House
- Paint House II
- Minimum Window Subsequence