THN Interview Prep

What else we can do

Optional directions for the DSA + System Design mind-map repo. Pick what matches your goal (interview speed, teaching, team use, or long-term maintenance). Nothing here is required for the current notes-first setup to stay valid.


Automation and CI

IdeaWhy
GitHub ActionsRun scripts/validate-problems.sh (and optionally refresh-knowledgebase.sh) on every PR so broken section shapes never merge.
Link checker in CIFail if internal .md links break after refactors (small Python or lychee-style tool).
Pre-commit hookRun validation locally before commit; optional auto-run refresh-knowledgebase.sh when only topics/ changed.
Scheduled snapshotNightly workflow that opens a PR only when counts drift (optional; noisy if content churn is low).

Learning and recall (beyond static markdown)

IdeaWhy
Spaced-repetition deck exportScript to emit CSV/Anki from ## Mind-Map Tags + title → drill recognition cues only.
“Redo deck” fileMaintain study/redo-queue.md listing LC numbers you missed cold; regenerate from git blame or manual checkboxes.
Difficulty progression pathsMarkdown maps per topic: Easy → Medium → Hard chains with explicit “unlock” links (already partly in patterns).
One-page cheat PDFPandoc build from cheatsheets/ + pattern index for print/offline.

Content expansion

IdeaWhy
Align PROBLEM_INDEX with diskAutomated diff: index rows vs topics/** filenames; script reports missing or orphaned files.
Company-tag consistencyNormalize “Companies” lines across problems for targeted grind lists (Google-heavy DP, etc.).
More SD case studiesMulti-region, cron at scale, CDC pipelines — same HLD template as existing system-design/hld/.
Behavioral story bankExpand interview-prep/ with outline-only STAR templates per LP (no fabricated stories).

Runnable code (departs from pure notes — optional)

IdeaWhy
solutions/go + solutions/jsPackage per LC number with go test / npm test — catches snippet drift; heavier maintenance.
leetcode-runner shimThin CLI that copies snippet into LC-shaped stubs for quick paste-test (personal tooling).

Search, navigation, and publishing

IdeaWhy
MkDocs / VitePress / DocusaurusSidebar by topic, full-text search, deploy to GitHub Pages for browser study.
Unified tag indexGenerate TAG_INDEX.md from ## Mind-Map Tags lines (rg-friendly backup already exists).
CHANGELOG.md for contentHuman-readable log when bulk problems land (teaching cohorts).

Team and teaching

IdeaWhy
CONTRIBUTING.mdPR checklist: template, diagram rule, run refresh-knowledgebase.sh, link check.
Weekly cohort agendaMarkdown templates under study/cohorts/ (Week N objectives + problem IDs).
Fork-friendly brandingNeutralize paths if others fork (optional LICENSE file + short attribution line).

Quality and accessibility

IdeaWhy
Mermaid lintCatch invalid diagrams before merge (some CI integrations support this).
Alt text / captionsShort line under each diagram for screen readers if you publish HTML.
Consistency pass on “At a Glance”Normalize Frequency and Companies format across older files.

Quick wins (low effort, high clarity)

  1. Add GitHub Actions only for validate-problems.sh.
  2. Add CONTRIBUTING.md pointing at problem-template.md, diagram rule, and refresh-knowledgebase.sh.
  3. Add a scripts/diff-index-vs-disk.py that compares PROBLEM_INDEX.md table to actual files (report-only).

Suggested order if you only do three things next

  1. CI validation — protects 12-section + diagram discipline.
  2. CONTRIBUTING.md — saves you explaining rules every time.
  3. Index vs disk diff script — keeps PROBLEM_INDEX.md honest as you grow.

See also: AGENTS.md in the repository root (continuing work table), Archived implementation plan (original scope and Phase 2 notes).

Last updated on

Spotted something unclear or wrong on this page?

On this page