Skip to content

ethanjianglape/leet-code-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode C++ Study Tool

A Claude Code-powered interview preparation workspace for solving LeetCode problems in C++23.

The goal is not memorization — it's interview simulation. Claude acts as a technical interviewer: engaging with your observations, probing edge cases, and letting you drive. If you need help, just ask directly.

Requirements

Usage

Add a new problem

Use the /leetcode slash command with a LeetCode problem URL:

/leetcode https://leetcode.com/problems/two-sum/description/

This will:

  • Fetch the problem statement and C++ stub via the LeetCode GraphQL API
  • Create a solution file at solutions/<id>_<slug>.cpp
  • Print the problem so you can start without opening a browser
  • Enter technical interviewer mode

Work through the problem

Claude will respond as a technical interviewer. Ask clarifying questions, voice your observations, and think out loud — that's the point. If you get stuck and want a hint or explanation, just ask Claude directly (not as the interviewer).

Review a previously solved problem

Use the /quiz slash command to be quizzed on a random problem from your solutions folder:

/quiz

Claude will present the problem as an interviewer would, then guide a discussion where you walk through the problem, your approach, the complexity, and any edge cases — all from memory. The goal is not to rewrite the solution, but to practice explaining it clearly, the way you'd need to in a real interview.

Structure

solutions/
  0001_two_sum.cpp
  0023_merge_k_sorted_lists.cpp
  ...
.claude/
  CLAUDE.md               # project and interviewer behavior instructions
  commands/leetcode.md    # /leetcode slash command definition
  commands/quiz.md        # /quiz slash command definition

License

This project is licensed under the GNU General Public License v3.0.

About

A C++ study tool using LeetCode and Claude

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors