DSA Patterns Guide

When to use two pointers, sliding window, binary search on the answer, BFS, DFS, DP, greedy, backtracking, heaps, stacks and union-find, with the signal to look for.

More in Career & Placements.