Data Structures
Arrays
- Two Sum | Two Sum II ^ | 3Sum Simp | 3Sum Adv | Product of Array Except Self
- Find the Duplicate Number | Best Time to Buy & Sell Stock ^ | Plus One ^
- Container with Most Water | Longest Consecutive Sequence
- Trapping Rain Water ^
Matrix
String
- Valid Palindrome | Encode and Decode Strings |
- Longest Palindromic Substring ^ | Palindromic Substrings
- Longest Substring Without Repeating Characters | Permutation in String ^
- Longest Repeating Character Replacement | Minimum Window Substring
Hashing
Linked List
- Remove Nth Node from End of List | Copy List with Random Pointer ^
- Add Two Numbers ^ | Linked List Cycle | Merge Two Sorted Linked Lists
- Merge K Sorted Lists | Reorder List | Reverse Linked List
- Reverse Nodes in K-Group ^ | LRU Cache ^
Stack and Queue (Monotonic)
- Valid Parentheses | Min Stack ^ | Evaluate Reverse Polish Notation ^ |
- Daily Temperatures ^ | Car Fleet ^ | Largest Rectangle in Histogram ^
- Sliding Window Maximum ^
Tree
- Maximum Depth of Binary Tree | Same Tree | Invert Binary Tree
- Subtree of Another Tree | Diameter of a Binary Tree ^
- Balanced Binary Tree ^ | Binary Tree Level Order Traversal
- Binary Tree Right Side View ^ | Binary Tree Max Path Sum
- Construct Tree from Preorder and Inorder Traversal
- Serialize and Deserialize Binary Tree | Count Good Nodes in a Binary Tree ^
- Validate Binary Search Tree | Kth Smallest Element in a BST
- Lowest Common Ancestor of a BST | Time Based Key-Value Store ^
Trie
Heap
- Kth Largest Element in an Array ^ | Kth Largest Element in a Stream ^
- Top K Frequent Elements | K Closest Points to Origin ^
- Last Stone Weight ^ | Task Scheduler ^
- Design Twitter ^ | Find Median from Data Stream
Graphs
- Number of Islands | Max Area of Island ^ |
- Pacific Atlantic Waterflow | Surrounded Regions ^ |
- Rotting Oranges ^ | Walls and Gates ^ | Word Ladder ^
- Clone Graph | Graph Valid Tree | Reconstruct Itinerary ^
- Number of Connected Components in Graph | Redundant Connection ^
- Course Schedule | Course Schedule II ^ | Alien Dictionary |
- Longest Increasing Path in a Matrix ^
- Min Cost to Connect all Points ^ | Network Delay Time ^
- Swim in Rising Water ^ | Cheapest Flights Within K Stops ^
Interval
- Merge Intervals | Insert Interval | Non-overlapping Intervals | Meeting Rooms
- Meeting Rooms II | Minimum Interval to Include Each Query ^
Algorithms
Binary Search
- Binary Search ^ | Search a 2D Matrix ^ | Koko Eating Bananas ^
- Find Minimum in Rotated Sorted Array | Median of Two Sorted Arrays ^
- Search Rotated Sorted Array
Math
- Happy Number ^ | Pow(x, n) ^ | Multiply Strings ^
- Detect Squares ^ | Reverse Integer ^
Bit
- Single Number ^ | Sum of Two Integers | Number of 1 Bits
- Counting Bits | Missing Number | Reverse Bits
Greedy
- Maximum Subarray Sum | Jump Game ^ | Jump Game II ^
- Hand of Straights ^ | Merge Triplets to Form Target Triplet ^
- Partition Labels ^ | Valid Parenthesis String | Gas Station ^
Backtracking
- Subsets ^ | Subsets II ^ | Permutations ^ | Combination Sum ^
- Combination Sum II ^ | Letter Combinations of a Phone Number ^
- Word Search ^ | Palindrome Partitioning ^
- N-Queens ^ | Generate Parentheses ^
Dynamic Programming
- Best Time to Buy & Sell Stock ^ | Climbing Stairs | Min Cost Climbing Stairs ^
- House Robber | House Robber II | Decode Ways | Target Sum ^
- Coin Change | Distinct Subsequences ^ | Valid Parenthesis String
- Maximum Product Subarray | Edit Distance ^ | Burst Balloons ^
- Word Break | Longest Increasing Subsequence | Partition Equal Subset Sum ^
- Unique Paths | Longest Common Subsequence | Regular Expression Matching ^
- Best Time to Buy/Sell Stock With Cooldown ^ | Coin Change II ^
- Interleaving String ^ | Longest Increasing Path in a Matrix ^
- Longest Palindromic Substring ^ | Palindromic Substrings