Skip to content

Instantly share code, notes, and snippets.

{
"public_identifier":"minyoungan",
"profile_pic_url":"https://s3.us-west-000.backblazeb2.com/proxycurl/person/minyoungan/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20240918%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20240918T062650Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=0664f92afc943d144c46cf98b4bcfc1dc1ba31c5a741e6a85f34f5f9b75b9a8c",
"background_cover_image_url":"https://s3.us-west-000.backblazeb2.com/proxycurl/person/minyoungan/cover?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20240918%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20240918T062650Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=f150e48007bd9288bc75e916cbb4de40c9b69e0f3f7b41dd7bc83aa52d899367",
"first_name":"Minyoung",
"last_name":"An",
"full_name":"Minyoung An",
"follower_count":1358,
"occupation":"Software Engineer",
"headline":"Software Engineer",
@minyoungan
minyoungan / grokking_to_leetcode.md
Created March 26, 2022 07:16 — forked from tykurtz/grokking_to_leetcode.md
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

class Customer(object):
"""Produces objects that represent customers."""
def __init__(self, customer_id):
self.customer_id = customer_id
def display_cart(self):
print "I'm a string that stands in for the contents of your shopping cart!"
class ReturningCustomer(Customer):
"""For customers of the repeat variety."""