This repo is a minimal C++ crash course focused on Data Structures & Algorithms.
It covers only the 20% of C++ that gives 80% benefit for solving problems on LeetCode & in contests.
template.cpp
→ Base template with fast I/O (use this as your starting point).01_basics/
→ Core syntax lessons (I/O, auto, references, memory, OOP).02_stl/
→ STL essentials (vector, string).practice_problems/
→ Concept-based small problems for practice.leetcode_homework/
→ LeetCode problem skeletons (copy-paste ready).
-
Open this repo in VS Code:
code .
-
Compile any file using:
g++ -std=c++17 filename.cpp -o run ./run
-
Solve practice problems → then attempt the linked LeetCode homework.
- Week 1: Basics (Lessons 1–5)
- Week 2: STL containers (Lessons 6–10)
- Week 3: Helpers (stack, queue, priority_queue, lambdas)
- Week 4: Problem-solving patterns (two pointers, binary search, trees, graphs)
End goal → 30–50 solved LeetCode problems + clean C++ DSA foundation 🎯