1. Sliding window
- Best Time to Buy & Sell Stock
- Longest Substring Without Repeating Characters
- Longest Repeating Character Replacement
- Permutation in String
2. Two pointers
3. Array & Hashing
- Contains Duplicate
- Valid Anagram
- Two Sum
- Group Anagrams
- Top K Frequent Elements
- Product of Array Except Self
4. Linked list
- Reverse Linked List
- Merge Two Linked Lists
- Linked List Cycle
- Reorder List
- Remove Nth Node from End of List
- Copy List with Random Pointer
- Add Two Numbers
- Find the Duplicate Number
- LRU Cache
5. Binary trees
- Invert Binary Tree
- Maximum Depth of Binary Tree
- Diameter of a Binary Tree
- Balanced Binary Tree
- Same Tree
- Subtree of Another Tree
- Lowest Common Ancestor of a BST
- Binary Tree Level Order Traversal
- Binary Tree Right Side View
- Validate Binary Search Tree
- Count Good Nodes in a Binary Tree
- Construct Tree from Preorder and Inorder Traversal
6. Bit
- Single Number
- Number of 1 Bits
- Counting Bits
- Reverse Bits
- Missing Number
- Sum of Two Integers
- Reverse Integer
7. Stack
No comments:
Post a Comment