Skip to content

Instantly share code, notes, and snippets.

@tykurtz
Last active July 17, 2026 05:08
Show Gist options
  • Select an option

  • Save tykurtz/3548a31f673588c05c89f9ca42067bc4 to your computer and use it in GitHub Desktop.

Select an option

Save tykurtz/3548a31f673588c05c89f9ca42067bc4 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

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

Misc

@thrownullpointer

Copy link
Copy Markdown

@AhmedAzor

Copy link
Copy Markdown

@himnish0

Copy link
Copy Markdown

https://libgen.is/search.php?req=grokking+the+coding+interview&lg_topic=libgen&open=0&view=simple&res=25&phrase=1&column=def

(grokking the coding interview course ---> zip file link ---> use "7-zip" to extract after downloading)

If link isn't working , then go to libgen (generally libgen.is) and search for the course there....the extracting method remains the same.

@shazib-summar

Copy link
Copy Markdown

https://libgen.is/search.php?req=grokking+the+coding+interview&lg_topic=libgen&open=0&view=simple&res=25&phrase=1&column=def

(grokking the coding interview course ---> zip file link ---> use "7-zip" to extract after downloading)

If link isn't working , then go to libgen (generally libgen.is) and search for the course there....the extracting method remains the same.

kinda feel bad for the authors, but thanks

@thrownullpointer

Copy link
Copy Markdown

If you feel bad for the author pay $79 for lifetime access. There is a 20% off coupon so its $63.20. https://designgurus.org/course/grokking-the-coding-interview

@newpain01

Copy link
Copy Markdown

https://libgen.is/search.php?req=grokking+the+coding+interview&lg_topic=libgen&open=0&view=simple&res=25&phrase=1&column=def

(grokking the coding interview course ---> zip file link ---> use "7-zip" to extract after downloading)

If link isn't working , then go to libgen (generally libgen.is) and search for the course there....the extracting method remains the same.

This is awesome, thanks!
Have you seen the system design interview somewhere?

@himnish0

Copy link
Copy Markdown

https://libgen.is/search.php?req=grokking+the+coding+interview&lg_topic=libgen&open=0&view=simple&res=25&phrase=1&column=def
(grokking the coding interview course ---> zip file link ---> use "7-zip" to extract after downloading)
If link isn't working , then go to libgen (generally libgen.is) and search for the course there....the extracting method remains the same.

This is awesome, thanks! Have you seen the system design interview somewhere?

No but if you do, kindly share.

@newpain01

Copy link
Copy Markdown

https://libgen.is/search.php?req=grokking+the+coding+interview&lg_topic=libgen&open=0&view=simple&res=25&phrase=1&column=def
(grokking the coding interview course ---> zip file link ---> use "7-zip" to extract after downloading)
If link isn't working , then go to libgen (generally libgen.is) and search for the course there....the extracting method remains the same.

This is awesome, thanks! Have you seen the system design interview somewhere?

No but if you do, kindly share.

I found this: https://github.com/donnemartin/system-design-primer
Some people mentioned it's inspired by grokking, but I wouldn't know.

@efie45

efie45 commented Oct 21, 2022

Copy link
Copy Markdown

Awesome list!

For Cyclic Sort, you have the last item in the list linked to https://leetcode.com/problems/kth-missing-positive-number/ which is not correct.

The leetcode question has an array of sorted, positive numbers and you are looking for the kth missing positive. This is an LC easy and you don't even need cyclic sort since the numbers are already sorted.

The grokking question is an unsorted array containing both positive and negative numbers, possibly duplicate values, and you are finding all values from 1-k. This is a LC hard (per grokking)

@navidre

navidre commented Nov 8, 2022

Copy link
Copy Markdown

There is a new grokking course on Educative. I am creating a new mapping. Pull requests are appreciated. Link: https://github.com/navidre/new_grokking_to_leetcode

@AhmedAzor

Copy link
Copy Markdown

letss goo

@JunYuHuang

JunYuHuang commented Nov 17, 2022

Copy link
Copy Markdown

If you feel bad for the author pay $79 for lifetime access. There is a 20% off coupon so its $63.20. https://designgurus.org/course/grokking-the-coding-interview

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.

@lamquangtruongnguyen

Copy link
Copy Markdown

Thanks for sharing

@alanacevedo

Copy link
Copy Markdown

Thanks

@branden-floris

Copy link
Copy Markdown

Hi,

I do see a couple of new patterns in the Grokking the Coding Interview: https://www.designgurus.io/course/grokking-the-coding-interview

Backtracking: https://www.designgurus.io/course-play/grokking-the-coding-interview/doc/63d3bcd7f81b8e2fe5ded81c
Multi-threaded: https://www.designgurus.io/course-play/grokking-the-coding-interview/doc/63a5ce68923d029fb1c4b4ec

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

@dhan206

dhan206 commented Jun 27, 2023

Copy link
Copy Markdown

@bying24

bying24 commented Jun 28, 2023

Copy link
Copy Markdown

@dhan206

dhan206 commented Aug 23, 2023

Copy link
Copy Markdown

@dhan206

dhan206 commented Aug 28, 2023

Copy link
Copy Markdown

@khemtwt11

Copy link
Copy Markdown

Thanks to everyone.

@DeveshKrishan

Copy link
Copy Markdown

You're the goat!

@HassanQayyum1993

Copy link
Copy Markdown

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

@iamk-shubh

Copy link
Copy Markdown

@i-zanis topological orderings are not unique right?

yes .. they may vary

@anand27

anand27 commented Dec 9, 2023

Copy link
Copy Markdown

can someone share the updated list ?

@navidre

navidre commented Jan 5, 2024

Copy link
Copy Markdown

I built this GPT for personalized mock interviews. Any programming language. With detailed feedback. Needs ChatGPT Plus for now: https://chat.openai.com/g/g-ngDadz7qM-mock-interviewer

@swarnabhK

Copy link
Copy Markdown

@LeetStream

Copy link
Copy Markdown

https://leetstream.github.io/
It offers daily LeetCode problems categorized under 26 patterns, shuffled to ensure spaced repetition across different coding patterns.

@volteone

Copy link
Copy Markdown

is this list being maintained? can somebody please share the updated version if any?

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