Skip to content

Instantly share code, notes, and snippets.

View timmyjose's full-sized avatar

Timmy Jose timmyjose

View GitHub Profile
@timmyjose
timmyjose / grokking_to_leetcode.md
Created July 9, 2022 17:36 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems
View grokking_to_leetcode.md

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

View json_tree.rs
use std::string;
enum JsonObject {
Number(i32),
String(string::String),
Array(Vec<JsonObject>),
Object(Vec<KeyVal>),
}
use JsonObject::*;