4 items
Two-Pointer Pair Sum Bug
Choosing the Right Core Pattern
Core Patterns: Sorting, Two-Pointers, BFS/DFS
Learn to match problem signals to two-pointers, BFS, or sorting-based approaches.
You must find the shortest path (fewest edges) from a start node to a target node in an unweighted graph. Which core pattern is the most appropriate choice?