-
Sliding Window Longest substring without repeating characters Maximum sum of subarrays of size K Smallest subarray with a given sum
-
Two Pointers Pair with target sum in sorted array Remove duplicates from sorted array Triplets that sum to zero
-
Fast & Slow Pointers Detect cycle in a linked list Find the middle of a linked list Happy number
-
Merge Intervals Merge overlapping intervals Insert an interval in sorted intervals Intervals intersection
-
Cyclic Sort Find the missing number Find all duplicate numbers Find the smallest missing positive number
-
Tree Traversal In-order, pre-order, and post-order traversal of binary tree Level order traversal of binary tree Zigzag level order traversal
-
Top 'K' Elements Top 'K' frequent numbers Top 'K' largest numbers in a stream Kth smallest number in an unsorted array
-
Subsets Subsets of a given set Permutations of a set Unique subsets with duplicates
-
Modified Binary Search Find an element in a rotated sorted array Search in a sorted matrix Find the floor of a number
-
Dynamic Programming 0/1 Knapsack problem Longest common subsequence Fibonacci numbers
-
Backtracking Generate all subsets of a set N-Queens problem Sudoku solver
-
Union Find Find connected components in a graph Detect cycles in an undirected graph Kruskal's algorithm for minimum spanning tree