Skip to content

Instantly share code, notes, and snippets.

@jaynagpaul
jaynagpaul / grokking_to_leetcode.md
Created September 15, 2022 13:45 — 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

from InstagramAPI import InstagramAPI
import time
def ask_for_info():
"""
Ask the user running this script for certain info we need.
Returns a dictionary with the answers.
"""
username = input('What\'s your Instagram Username? ')
@jaynagpaul
jaynagpaul / app.go
Last active July 1, 2018 14:55
Example of a possible future WASM + Go framework.
package devcomponents
// go:generate oak generate devcomponents -o components
import (
"github.com/hogstack/oak"
"fmt"
)
var template = `<h1> Welcome to my App {app.name}! You are {app.age} years old. </h1>`
04844c79fec11d563174dcef8e0422bc0a45e0baf59ee3ab1e4c5486656d7cfdd770a5ff165d4a167c227759b7d81f1b2ebafe8cf3324e62cbee17a0003d7738fe