Skip to content

Repository files navigation

LeetCode Mastery — 4000 Problems in C++

Goal: Land a job at a top software company (Google focus). Become fluent in C++ along the way.

How this repo is organized

00_START_HERE/         Roadmap, study plan, daily routine
01_Patterns/           THE MAIN FOLDER — solutions grouped by pattern (NeetCode-style)
02_By_Number/          Symlinks/copies indexed by problem number (fast lookup)
03_By_Company/         Lists of problems tagged by company
04_CPP_Fluency/        C++ language notes: STL, idioms, modern C++, pitfalls
05_Templates/          Reusable algorithm/DS templates (copy-paste ready)
06_Learning_System/    Daily log, mistakes book, spaced-repetition review queue
07_Mock_Interviews/    Timed sessions, behavioral prep, system design basics
08_Resources/          Books, links, cheat sheets

The flow for each problem

  1. Attempt it cold for 25–30 min. No hints.
  2. If stuck → write down what you tried in 06_Learning_System/mistakes/.
  3. Read editorial / discuss. Understand the pattern.
  4. Re-code from scratch. No copy-paste.
  5. Save final solution in 01_Patterns/<pattern>/NNNN_name.cpp using the template (see 05_Templates/snippets/solution_template.cpp).
  6. Add a 1-line entry to 02_By_Number/<range>/index.md so you can find it later.
  7. If it took >1 hour or you got it wrong → add to 06_Learning_System/review_queue/.

File naming

NNNN_problem_name.cpp — zero-padded 4 digits, snake_case. Example: 0001_two_sum.cpp, 0146_lru_cache.cpp.

Why this structure

  • Patterns first because FAANG interviews test patterns, not random problems.
  • By number second because you'll need to find "did I solve 295?" in seconds.
  • Company folders are lists (markdown), not duplicates — they point into 01_Patterns/.
  • Learning system is what separates 4000 solved from 4000 remembered.

See 00_START_HERE/ROADMAP.md for the suggested order.

About

Solving 4000 LeetCode problems in C++ on the road to a top software company. Organized by pattern with a spaced-repetition learning system.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages