Skip to content

Instantly share code, notes, and snippets.

@hasinur1997
Created November 16, 2024 10:19
Show Gist options
  • Save hasinur1997/50093240b3550d5ebe1febe3b19f41cf to your computer and use it in GitHub Desktop.
Save hasinur1997/50093240b3550d5ebe1febe3b19f41cf to your computer and use it in GitHub Desktop.

25 Coding Patterns

  1. Two Pointers
  2. Fast and Slow Pointers
  3. Flood Fill
  4. Sliding Window
  5. Merge Intervals
  6. Cyclic Sort
  7. In-place Reversal of a Linked List
  8. Tree Depth First Search
  9. Two Heaps
  10. Subsets
  11. Modified Binary Search
  12. Top 'K' Elements
  13. Bitwise XOR
  14. Backtracking
  15. 0/1 Knapsack (Dynamic Programming)
  16. Topological Sort (Graph)
  17. K-way Merge
  18. Multi-threaded
  19. Monotonic Stack
  20. Union Find
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment