Designing Algorithms

You can choose from a wide range of algorithm design techniques.

Insertion sort uses the incremental method.

Must-Know Techniques to Solve LeetCode Problems

  • Two Pointers
    • Slow and Fast
  • Prefix Sum
  • Sliding Window
  • Divide-and-conquer
    • Merge Sort
  • Top K Elements
  • BFS
  • DFS
  • Backtracking
  • Dynamic Programming
    • Tabulation
    • Memoization
  • Binary search
  • Binary tree traversals
  • Topological Sort

Table of contents


This site uses Just the Docs, a documentation theme for Jekyll.