Node.js / TypeScript
Weekly Goalsβ
- DSA
- Practice:
- Trees (traversals, height, basic properties).
- Graphs (BFS/DFS, shortest path, topological sort basics).
- Heaps/priority queues (top-K, scheduling).
- Perform several timed mixed sets.
- Practice:
- Interview Skills
- Emphasize clean communication and explaining trade-offs.
Use with:
Weekly Overview Tableβ
| Day | Focus |
|---|---|
| 1 | Trees β traversals & basic properties |
| 2 | Trees β lowest common ancestor & variations |
| 3 | Graphs β BFS/DFS & representations |
| 4 | Graphs β shortest path & topological sort (basic) |
| 5 | Heaps/Priority queues β top-K & scheduling |
| 6 | Mixed timed sets (trees/graphs/heaps) |
| 7 | Weekly review & full mock DSA interview |
Day 1 β Trees: Traversals & Basic Propertiesβ
4-Hour Planβ
-
Block 1 (Concepts β 30β45 min)
- Review:
- Binary tree traversals (pre/in/post-order).
- Level-order (BFS).
- Review:
-
Block 2 (Practice β 90 min)
- 3 tree problems:
- Traversal, height, counting nodes/leaves.
- 3 tree problems:
-
Block 3 (Review β 45β60 min)
- Write tree traversal templates.
-
Block 4 (Light Backend β 30 min)
- Brief glance over system design notes.
6-Hour Planβ
- Add:
- Extra tree problem (30β45 min):
- Slightly more complex (e.g., path sum).
- Extra tree problem (30β45 min):
Day 2 β Trees: LCA & Variationsβ
4-Hour Planβ
-
Block 1 (Concepts β 30β45 min)
- Lowest common ancestor (LCA).
- BST vs general tree basics.
-
Block 2 (Practice β 90 min)
- 3 problems:
- 1 LCA problem.
- 2 other tree variations (e.g., symmetric tree, diameter).
- 3 problems:
-
Block 3 (Review β 45β60 min)
- Document LCA approaches (for BST vs general tree).
-
Block 4 (Light Backend β 30 min)
- Another quick skim of earlier backend notes.
6-Hour Planβ
- Add:
- Extra tree problem (30β45 min) if comfortable.
Day 3 β Graphs: BFS/DFS & Representationsβ
4-Hour Planβ
-
Block 1 (Concepts β 30β45 min)
- Graph representations:
- Adjacency list vs adjacency matrix.
- BFS vs DFS and typical use cases.
- Graph representations:
-
Block 2 (Practice β 90 min)
- 3 graph problems:
- Connectivity, number of components, simple path existence.
- 3 graph problems:
-
Block 3 (Review β 45β60 min)
- Write BFS/DFS template code.
-
Block 4 (Light Backend β 30 min)
- Relate to:
- How graphs appear in backend (e.g., dependency graphs).
- Relate to:
6-Hour Planβ
- Add:
- Extra graph problem (30β45 min).
Day 4 β Graphs: Shortest Path & Topological Sort (Basics)β
4-Hour Planβ
-
Block 1 (Concepts β 30β45 min)
- Dijkstraβs algorithm basics (priority queue).
- Topological sort for DAGs.
-
Block 2 (Practice β 90 min)
- 2β3 problems:
- 1 shortest path (unweighted BFS or weighted simple).
- 1 topological sort problem.
- 2β3 problems:
-
Block 3 (Review β 45β60 min)
- Summarize when to use BFS vs Dijkstra.
-
Block 4 (Light Backend β 30 min)
- Tie back to system design examples (e.g., scheduling, dependency resolution).
6-Hour Planβ
- Add:
- Extra shortest path problem (30β45 min) if confident.
Day 5 β Heaps/Priority Queues: Top-K & Schedulingβ
4-Hour Planβ
-
Block 1 (Concepts β 30β45 min)
- Min-heap vs max-heap.
- Priority queues for scheduling.
-
Block 2 (Practice β 90 min)
- 3 problems:
- Top-K elements.
- Merge K sorted arrays/lists.
- Basic scheduling or frequency-based problems.
- 3 problems:
-
Block 3 (Review β 45β60 min)
- Record heap-based patterns and common pitfalls.
-
Block 4 (Light Backend β 30 min)
- Relate heaps to backend tasks (e.g., job scheduling).
6-Hour Planβ
- Add:
- Extra heap problem (30β45 min).
Day 6 β Mixed Timed Sets (Trees/Graphs/Heaps)β
4-Hour Planβ
-
Block 1 (Timed Set 1 β 90 min)
- 2 problems:
- 1 tree problem.
- 1 graph or heap problem.
- Time-box ~40β45 min each.
- 2 problems:
-
Block 2 (Timed Set 2 β 60 min)
- 1 additional problem of your choice.
-
Block 3 (Review β 30β45 min)
- Summarize performance and gaps.
6-Hour Planβ
- Add:
- Extra quick problem (30β45 min) for the weakest area.
Day 7 β Weekly Review & Full Mock DSA Interviewβ
4-Hour Planβ
-
Block 1 (Mock Interview β 90 min)
- Simulate:
- 2 DSA problems (mix arrays/trees/graphs).
- Practice speaking your thought process.
- Simulate:
-
Block 2 (Review β 60 min)
- Analyze:
- Time management.
- Communication.
- Correctness.
- Analyze:
-
Block 3 (Planning β 30β45 min)
- Skim week-16 for final revision focus.
- Update dsa-backend-plan.md and pattern cheat sheet.
6-Hour Planβ
- Add:
- Third problem (30β45 min) if you have energy, focusing on your weakest topic.