Skip to content

Instantly share code, notes, and snippets.

View PratikRJoshi's full-sized avatar

Pratik Joshi PratikRJoshi

  • Salesforce Inc
  • United States
View GitHub Profile
@PratikRJoshi
PratikRJoshi / grokking_to_leetcode.md
Last active May 14, 2024 07:17 — 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.

GitHub Pages Site for all the below problems: https://glucko.github.io/codeprep/

Pattern: Sliding Window

@PratikRJoshi
PratikRJoshi / System Design.md
Created August 2, 2019 02:56 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
// imports a couple of java tasks
apply plugin: "java"
// List available tasks in the shell
> gradle tasks
// A Closure that configures the sourceSets Task
// Sets the main folder as Source folder (where the compiler is looking up the .java files)
sourceSets {
main.java.srcDir "src/main"