Skip to content

Instantly share code, notes, and snippets.

@Exegetech
Forked from tykurtz/grokking_to_leetcode.md
Created March 25, 2022 04:35
Show Gist options
  • Save Exegetech/5c9a462e87c1ab9237ae200189b94c32 to your computer and use it in GitHub Desktop.
Save Exegetech/5c9a462e87c1ab9237ae200189b94c32 to your computer and use it in GitHub Desktop.
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

  1. Pattern: Sliding Window
  1. Pattern: Two Pointers
  1. Pattern: Fast & Slow pointers
  1. Pattern: Merge Intervals
  1. Pattern: Cyclic Sort
  1. Pattern: In-place Reversal of a LinkedList
  1. Pattern: Tree Breadth First Search
  1. Pattern: Tree Depth First Search
  2. Pattern: Two Heaps
  3. Pattern: Subsets
  4. Pattern: Modified Binary Search
  5. Pattern: Bitwise XOR
  6. Pattern: Top 'K' elements
  7. Pattern: K-way merge
  8. Pattern: 0/1 Knapsack
  9. Pattern: Topological Sort

https://leetcode.com/problems/kth-largest-element-in-an-array/

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