Skip to content

Instantly share code, notes, and snippets.

Last active July 13, 2024 12:13
Show Gist options
  • Save tykurtz/3548a31f673588c05c89f9ca42067bc4 to your computer and use it in GitHub Desktop.
Save tykurtz/3548a31f673588c05c89f9ca42067bc4 to your computer and use it in GitHub Desktop.
Grokking the coding interview equivalent leetcode problems


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

Pattern: Merge Intervals

Pattern: Cyclic Sort

Pattern: In-place Reversal of a LinkedList

Pattern: Tree Breadth First Search

Pattern: Tree Depth First Search

Pattern: Two Heaps

Pattern: Subsets

Pattern: Modified Binary Search

Pattern: Bitwise XOR

Pattern: Top 'K' elements

Pattern: K-way merge

Pattern: 0/1 Knapsack

Pattern: Topological Sort


Copy link

navidre commented Nov 8, 2022

There is a new grokking course on Educative. I am creating a new mapping. Pull requests are appreciated. Link:

Copy link

letss goo

Copy link

JunYuHuang commented Nov 17, 2022

If you feel bad for the author pay $79 for lifetime access. There is a 20% off coupon so its $63.20.

I bought the course a couple months ago for full price and all I can say is that I regret buying it and feel it was a waste of money. For how much it costs for what is basically a curated LeetCode problem set with solutions, a significant amount of the solutions don't offer much in depth or detailed explanation and some of the solutions fail to pass their closest LC equivalent problems. I've found better solution explanations and help from looking on the Discuss page of those LC problems and watching NeetCode's video solutions.

Copy link

Thanks for sharing

Copy link


Copy link


I do see a couple of new patterns in the Grokking the Coding Interview:


Does anyone have the list of equivalent LC questions, especially under Multi-threaded?

Copy link

dhan206 commented Jun 27, 2023

Copy link

dhan206 commented Aug 23, 2023

Copy link

dhan206 commented Aug 28, 2023

Copy link

Thanks to everyone.

Copy link

You're the goat!

Copy link

Hi, Is it legal to share this course notes on GitHub?

Copy link

@i-zanis topological orderings are not unique right?

yes .. they may vary

Copy link

anand27 commented Dec 9, 2023

can someone share the updated list ?

Copy link

navidre commented Jan 5, 2024

I built this GPT for personalized mock interviews. Any programming language. With detailed feedback. Needs ChatGPT Plus for now:

Copy link
It offers daily LeetCode problems categorized under 26 patterns, shuffled to ensure spaced repetition across different coding patterns.

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