Here are the top 50 patterns of LeetCode questions:
1. Sliding Window
Maximum Subarray
Longest Substring Without Repeating Characters
2. Two Pointers
Two Sum
Reverse Linked List
Remove Duplicates from Sorted Array
3. Dynamic Programming
Fibonacci Number
Longest Common Subsequence
Minimum Path Sum
4. Depth-First Search (DFS)
Binary Tree Inorder Traversal
Validate Binary Search Tree
Find a Corresponding Node of a Binary Tree in a Clone of That Tree
5. Breadth-First Search (BFS)
Binary Tree Level Order Traversal
Rotting Oranges
Minimum Depth of Binary Tree
6. Hash Table
Two Sum
Contains Duplicate
Group Anagrams
7. Greedy
Coin Change
Jump Game
Best Time to Buy and Sell Stock
8. Bit Manipulation
Reverse Bits
Number of 1 Bits
Add Binary
9. Binary Search
Search Insert Position
Find First and Last Position of Element in Sorted Array
Find Peak Element
10. Graph
Clone Graph
Course Schedule
Number of Islands
11. Trie
Implement Trie (Prefix Tree)
Add and Search Word
Word Search II
12. Union Find
Friend Circles
Accounts Merge
Redundant Connection
13. Topological Sort
Course Schedule
Alien Dictionary
Topological Sorting
14. Recursion
Binary Tree Inorder Traversal
Permutations
Combinations
15. Memoization
Fibonacci Number
Longest Common Subsequence
Minimum Path Sum
16. Knapsack
0/1 Knapsack Problem
Unbounded Knapsack Problem
Fractional Knapsack Problem
17. Linked List
Reverse Linked List
Detect Cycle in Linked List
Remove Duplicates from Sorted List
18. Stack
Evaluate Reverse Polish Notation
Implement Stack using Queues
Daily Temperatures
19. Queue
Implement Queue using Stacks
Sliding Window Maximum
Design Circular Queue
20. String
Reverse String
Implement strStr()
Find All Anagrams in a String
21. Array
Rotate Array
Search in Rotated Sorted Array
Find First and Last Position of Element in Sorted Array
22. Matrix
Spiral Matrix
Rotate Image
Search a 2D Matrix
23. Backtracking
Permutations
Combinations
N-Queens
24. Segment Tree
Range Sum Query
Range Minimum Query
Range Update Query
25. Suffix Tree
Suffix Tree Construction
Suffix Tree Queries
Longest Common Prefix
26. LRU Cache
LRU Cache Implementation
LRU Cache with TTL
27. Trie + DFS
Word Search
Word Search II
Find Words
28. Binary Indexed Tree
Binary Indexed Tree Construction
Range Sum Query
Range Update Query
29. Sweep Line
Meeting Rooms
Meeting Rooms II
The Skyline Problem
30. Topological Sort + DFS
Course Schedule
Alien Dictionary
Topological Sorting
31. Union Find + DFS
Friend Circles
Accounts Merge
Redundant Connection
32. Trie + BFS
Word Ladder
Word Ladder II
Find Words
33. Dynamic Programming + Bit Mask
Partition Problem
Subset Sum Problem
Knapsack Problem
34. Greedy + Binary Search
Coin Change
Jump Game
Best Time to Buy and Sell Stock
35. Sliding Window + Hash Table
Longest Substring Without Repeating Characters
Maximum Subarray
Longest Substring with At Least K Repeating Characters
36. DFS + Memoization
Fibonacci Number
Longest Common Subsequence
Minimum Path Sum
37. BFS + Queue
Binary Tree Level Order Traversal
Rotting Oranges
Minimum Depth of Binary Tree
38. Trie + Trie
Word Search
Word Search II
Find Words
39. Segment Tree + Lazy Propagation
Range Sum Query
Range Minimum Query
Range Update Query
40. Suffix Array
Suffix Array Construction
Suffix Array Queries
Longest Common Prefix
41. Aho-Corasick
Aho-Corasick Algorithm
Multi-Pattern String Matching
Find All Anagrams in a String
42. Manacher's Algorithm
Longest