DSA + System Design Mind-Map
A markdown-first knowledge base for pattern recognition, fast recall, and teaching — purpose-built for MAANG / big-MNC SDE3+ interviews.
Coding solutions in Go (primary) and JavaScript (alt). System design covers Fundamentals → Building Blocks → HLD → LLD → Deep Dives.
How to use this repo
This is a mind map, not a linear textbook. Treat it like a reference that turns into mastery when each page answers what object?, what invariant?, what move is safe?, what complexity follows?.
Read it like an index:
- You see a problem in an interview.
- Skim the Patterns overview and match the recognition cues — that tells you the pattern.
- Open the matching pattern file → it lists representative problems and a generic recipe.
- Open the problem file -> use its mind-map sections to move from recognition cues to diagram, approach, code, walkthrough, and variants.
- Use the Similar problems map to jump sideways across problems with the same recipe.
For system design:
- Read the System design curriculum for the learning order.
- Use the System design interview framework (RESHADED) when given any new design question.
Top-level layout
| Section | What it holds |
|---|---|
| Patterns | ~20 pattern mind-maps (the recognition layer) |
| Topics | 226 unique problem mind-maps (see the Problem index; 152 canonical under dp-1d) |
| Cheatsheets | Complexity, Go/JS idioms, DS ops, recognition decision tree |
| System design fundamentals | CAP, consistency, scalability, back-of-envelope, etc. |
| Building blocks | LB, cache, MQ, sharding, consensus, rate limiter, ID generation, etc. |
| HLD case studies | ~20 full HLD case studies |
| LLD exercises | ~15 OOD / machine-coding designs |
| Design patterns | GoF + concurrency patterns (Go + JS) |
| Deep dives | Kafka, Redis, DynamoDB, Postgres, Cassandra internals |
| Interview prep | Company playbooks, 12-week plan, behavioral STAR |
| Problem index | Master curated problem list: 226 canonical write-ups, 233 index rows including aliases |
| 12-week roadmap | Phased 12-week study plan |
| Problem mind-map template | Target shape for new and deeply revised problem pages |
| Similar problems map | Cross-link map: problem → siblings (auto-index of all problem files) |
npm run docs:check-dsa | Validates DSA frontmatter and internal .md / .mdx links |
npm run docs:sync-dsa | Normalizes content/core-docs/dsa and syncs the rendered copy to content/docs/dsa |
| Docs visual enrichment workflow | Step-by-step workflow for adding explanatory diagrams/images across every DSA section |
Conventions
- Diagrams: Every problem mind-map includes
## Diagramwith a```mermaidblock (placed early, before approaches) for quick visual recall — see the Problem mind-map template. Pattern cards under Patterns follow the same rule (see the Pattern author template). - Naming:
topics/<topic>/problems/NNN-kebab-name.mdwhereNNNis the LeetCode number. - Templates are the source of truth for shape — see the Problem mind-map template, System design interview framework (RESHADED).
- Mind-Map Tags at the bottom of each file (e.g.
#hashmap #pair-sum) — userg "#hashmap"to retrieve. - Code snippets: idiomatic Go first, JS second. Both must be runnable when copied into a
main/ REPL.
Continuation (agents & context)
docs/AI-KNOWLEDGE-BASE.md(local, gitignored) — machine-friendly repo inventory when maintained locally; not published- Archived implementation plan — archived Cursor plan + completion snapshot
- Docs visual enrichment workflow — how to scan, prioritize, generate, review, and link visual assets
- Further improvements backlog — optional upgrades (CI, static site, Anki export, CONTRIBUTING, etc.)
- AI tooling roadmap — phased plan for implementing with AI: guardrails, automation, skills, static site, optional
solutions/
Quick start
- New to the repo? → 12-week roadmap
- Forgot a pattern? → Pattern recognition cheatsheet
- Picking a system-design Q to practice? → System design curriculum
- Going to interview at company X? → Company interview playbooks
Coverage goal
226 canonical problem write-ups chosen to cover ~90% of MAANG / big-MNC SDE3+ DSA rounds. Source blend: NeetCode 150 (base) + Grind 169 deltas + Striver SDE picks + Sean Prashad pattern fills + SDE3-tier Hards.
Mark this page when you finish learning it.
Last updated on
Spotted something unclear or wrong on this page?