Used for arrays or strings to find sub-segments (e.g., "Find the longest substring").
A "cheat code" for problems involving numbers in a specific range. grokking+the+coding+interview+github+pdf+full
Search for "LeetCode patterns" on GitHub. Many developers have created free, open-source repositories that mirror these patterns using free LeetCode problems. Used for arrays or strings to find sub-segments (e
Using Min-Heaps or Max-Heaps to find the biggest/smallest items. K-way Merge: Merging multiple sorted lists. grokking+the+coding+interview+github+pdf+full