Skip to content

Repository files navigation

Interview Prep

Coding, system design, and AI in one place — published as a real HTML book, rewritten for how interviewers score answers.

Live site: https://interview-prep.devninja.in/

What's inside

  1. Competitive Programming — patterns from arrays and hashing through graphs, DP, and bit manipulation (Python & Java).
  2. System Design — fundamentals, building blocks, and case studies (URL shortener, WhatsApp, Instagram, Amazon, S3, YouTube, Uber).
  3. AI Engineering — a deep story-driven path: LLMs, prompting, RAG, memory, agents, MCP, skills, and designing a full assistant (content/ai/).
  4. Interview Labs — 55 FAANG-frequency questions (20 coding, 18 system design, 17 AI) with why-asked, level expectations (Junior→Principal), expected arcs, follow-ups, common mistakes, and production examples.
  5. Guides — interview playbook, role learning paths, comparisons, company guides, behavioral/HR, and cheat sheets.

Chapters are normal web pages (selectable text + code blocks). Topic diagrams are freshly drawn SVGs — not PDF page screenshots. Labs track practiced questions in the browser (localStorage).

Local preview

python3 -m http.server 8080

Then open http://localhost:8080 or any file under chapters/.

Regenerate from the PDF / diagrams

pip install pymupdf
python3 scripts/generate_diagrams.py   # native SVG topic diagrams
python3 scripts/build_chapters.py      # HTML chapters from PDF (skips hand-authored AI; re-applies interview labs)
python3 scripts/assemble_ai_chapters.py  # deep AI section from content/ai/
python3 scripts/assemble_interview.py    # Interview Labs + enrichment + chapter drills
python3 scripts/assemble_guides.py       # Playbook, paths, comparisons, companies, behavioral

Cloudflare Workers

Primary URL: https://interview-prep.devninja.in/

  • src/index.js serves env.ASSETS
  • .assetsignore excludes .git
  • Deploy command: npx wrangler deploy

Files

Path Purpose
index.html Landing page & table of contents
chapters/ HTML chapters (text, code, embedded diagrams)
chapters/interview-*.html Coding / System Design / AI Interview Labs
`chapters/*-playbook paths
assets/diagrams/ Diagram images only
assets/interview-prep.pdf Original PDF
assets/nav.json Chapter navigation
scripts/assemble_interview.py Builds labs, injects enrichment + topic drills
scripts/assemble_guides.py Builds guide pages
scripts/interview_enrichment.py Per-question interviewer lens data
read.html Redirects into the chapter reader

Keyboard (reader)

  • / — previous / next chapter
  • Esc — close mobile contents

About

Interview prep repo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages