Skip to content

Instantly share code, notes, and snippets.

@tykurtz
tykurtz / grokking_to_leetcode.md
Last active May 2, 2024 02:07
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

@jessepinkman9900
jessepinkman9900 / Postgres.md
Last active April 24, 2024 03:12
commands for Postgres with docker

Docker

  1. get the container running on port 5000 NOTE: 5000:5432 => map from 5432 to 5000 docker run --name dev-postgres -e POSTGRES_PASSWORD=pwd -p 5000:5432 -d postgres

  2. access shell for that container docker exec -it dev-postgres bash

Shell commands for postgres

  1. enter the psql command line