Skip to content

Instantly share code, notes, and snippets.

@ShreyaDhir
Forked from tykurtz/grokking_to_leetcode.md
Last active November 6, 2023 17:58
Show Gist options
  • Save ShreyaDhir/dc1ef950b865d2814049f48db94ea1ab to your computer and use it in GitHub Desktop.
Save ShreyaDhir/dc1ef950b865d2814049f48db94ea1ab 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.

Pattern: Sliding Window

Pattern: Two Pointers

Pattern: Fast & Slow pointers

[10/09]

Pattern: Merge Intervals

Pattern: Cyclic Sort

[14/09]

Pattern: In-place Reversal of a LinkedList

Pattern: Tree Breadth First Search

[18/09]

Pattern: Tree Depth First Search

Pattern: Two Heaps

[23/09]

Pattern: Subsets

Pattern: Modified Binary Search

Pattern: Bitwise XOR

[6/10]

Pattern: Top 'K' elements

[8/10]

Pattern: K-way merge

[15/10]

Pattern: 0/1 Knapsack

Pattern: Topological Sort

[21/10]

Misc

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