15 Patterns for DSA

  1. Prefix Sum
  1. Two Pointers
  1. Sliding Window
  1. Fast & Slow Pointers
  1. LinkedList In-place Reversal
  1. Monotonic Stack
  1. Top ‘K’ Elements
  1. Overlapping Intervals
  1. Modified Binary Search
  1. Binary Tree Traversal
  1. Depth-First Search (DFS)
  1. Breadth-First Search (BFS)
  1. Matrix Traversal
  1. Backtracking
  1. Dynamic Programming Patterns