Skip to content

Instantly share code, notes, and snippets.

@kevinseo16
Forked from tykurtz/grokking_to_leetcode.md
Last active October 17, 2022 15:08
Show Gist options
  • Save kevinseo16/66a1af5087fd041e472bf145e1cc593b to your computer and use it in GitHub Desktop.
Save kevinseo16/66a1af5087fd041e472bf145e1cc593b to your computer and use it in GitHub Desktop.
Grokking the Coding Interview Patterns

Pattern 1: Sliding Window

Pattern 2: Islands (Matrix Traversal)

Pattern 3: Two Pointers

Pattern 4: Fast & Slow pointers

Pattern 5: Merge Intervals

Pattern 6 : Cyclic Sort

Pattern 7: In-place Reversal of a LinkedList

Pattern 8: Tree Breadth First Search

Pattern 9: Tree Depth First Search

Pattern 10: Two Heaps

Pattern 11: Subsets

Pattern 12: Modified Binary Search

Pattern 13: Bitwise XOR

Pattern 14: Top 'K' elements

Pattern 15: K-way merge

Pattern 16: 0/1 Knapsack

Pattern 17: Topological Sort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment