Your Personal LeetCode & DSA Mentor
Master algorithms through intelligent guidance, not just solutions.
Algo Sensei is an intelligent Claude Code skill that transforms how you practice LeetCode and master Data Structures & Algorithms. Instead of just giving you answers, it teaches you to think like a senior engineer.
Traditional LeetCode practice has a problem: Copy-pasting solutions doesn't build problem-solving skills.
Algo Sensei is different:
- β Teaches patterns instead of memorizing solutions
- β Progressive hints that guide you without spoiling
- β Real interview simulation with feedback
- β Intelligent mode detection - adapts to what you need
- β Pattern recognition training - see problems like pros do
Get foundational understanding through:
- Clear concept explanations with examples
- Step-by-step problem breakdowns
- Visual diagrams (ASCII art)
- Building intuition, not just memorization
5-level progressive hint system:
- Observation hints (gentlest)
- Pattern recognition nudges
- Approach direction
- Specific technique reveal
- Pseudocode skeleton (last resort)
You learn 10x more when you discover the solution yourself with guidance.
Comprehensive code review covering:
- Correctness verification
- Time & space complexity analysis
- Code quality feedback
- Optimization opportunities
- Edge case identification
- Interview readiness assessment
Realistic mock interviews with:
- Professional interviewer roleplay
- Real-time feedback and hints
- Communication evaluation
- Detailed performance rubric
- Post-interview improvement plan
Learn to recognize algorithmic patterns dynamically:
- Teaches HOW to identify patterns, not just memorize them
- Draws on Claude's comprehensive knowledge of ALL patterns
- Builds transferable pattern-recognition skills
- Works with any pattern: Two Pointers, DP, Graphs, Monotonic Stack, and more
Stop solving random problems. Start recognizing patterns.
Option 1: Install to personal skills (available in all projects)
# Clone the repository
git clone https://github.com/karanb192/algo-sensei.git
# Copy to your personal Claude skills directory
cp -r algo-sensei ~/.claude/skills/
# Restart Claude CodeOption 2: Install to project (team-shared via git)
# Clone the repository
git clone https://github.com/karanb192/algo-sensei.git
# Copy to your project's Claude skills directory
cp -r algo-sensei /path/to/your/project/.claude/skills/
# Commit to git so your team gets it too!
git add .claude/skills/algo-sensei
git commit -m "Add Algo Sensei skill for DSA practice"Algo Sensei works great on Claude.ai too! Here's how:
Method 1: Project Knowledge (Recommended - Full Experience)
- Go to Claude.ai and create a new Project
- Click "Add content" β Upload files
- Upload these key files for full functionality:
SKILL.md(main skill)- All files from
modes/folder (5 files) docs/dsa-cheatsheet.md(optional but helpful)templates/solutions/solution-template.md(for structured solutions)
- All conversations in this project now have full Algo Sensei capabilities!
Method 1b: Quick Setup (SKILL.md only)
For a lighter setup, just upload SKILL.md - you'll get intelligent routing but won't have access to the detailed mode instructions.
Method 2: Copy Specific Modes
- Browse to the mode you need (e.g.,
modes/hint-mode.md) - Copy the entire content
- Paste it as your first message in a new conversation
- Continue with your DSA problem
Method 3: Manual Integration
If you have Claude Pro with custom instructions:
- Add shortened version of
SKILL.mdto your custom instructions - Algo Sensei will be available in all chats
Tip: Project Knowledge with all files uploaded gives you the full experience - Claude can access all modes, patterns, and templates just like in Claude Code!
Once installed, Algo Sensei automatically activates when you need help with DSA/LeetCode problems.
Get hints on a problem:
You: "I'm stuck on LeetCode #3 - Longest Substring Without Repeating Characters. Can you give me a hint?"
Algo Sensei: [Automatically switches to Hint Mode]
π‘ Hint #1: What if you needed to track which characters you've seen recently?
...
Learn a concept:
You: "Can you explain dynamic programming to me?"
Algo Sensei: [Automatically switches to Tutor Mode]
π Let's build your understanding of DP from the ground up...
Review your code:
You: "Here's my solution for Two Sum. Can you review it?"
[paste code]
Algo Sensei: [Automatically switches to Review Mode]
π Code Review: Two Sum
...
Practice interview:
You: "Can we do a mock interview with a medium-level problem?"
Algo Sensei: [Automatically switches to Interview Mode]
π€ Hi! I'm Alex, senior engineer at TechCo. Ready to start?
...
Identify pattern:
You: "I'm not sure what approach to use for this problem..."
Algo Sensei: [Automatically switches to Pattern Mapper Mode]
πΊοΈ Let me help you identify the pattern...
Instead of memorizing fixed templates, Algo Sensei teaches you to recognize patterns dynamically:
- Signal keyword detection - Learn to spot clues in problem statements
- Problem characteristic analysis - Identify data structures and constraints
- Pattern matching skills - Build intuition for which approach fits
- Comprehensive explanations - Understand any algorithmic pattern Claude knows
Works for all patterns: Two Pointers, Sliding Window, DP, Graphs, Heaps, Tries, Monotonic Stack, and more!
- β Free and open-source
- β Personalized teaching style
- β Deeper explanations
- β Pattern-focused approach
- β Specialized for DSA/interviews
- β Structured progressive learning
- β Intelligent mode switching
- β Consistent methodology
- β Interactive and personalized
- β Adapts to your skill level
- β Available 24/7
- β Covers YOUR specific problems
algo-sensei/
βββ SKILL.md # Main skill file (intelligent router)
βββ README.md # You are here
βββ modes/
β βββ tutor-mode.md # Concept explanations
β βββ hint-mode.md # Progressive hints
β βββ review-mode.md # Code review
β βββ interview-mode.md # Mock interviews
β βββ pattern-mapper-mode.md # Pattern recognition
βββ templates/
β βββ solutions/
β βββ solution-template.md # Multi-language solution format
βββ scripts/
β βββ [future: test generators, complexity analyzers]
βββ docs/
βββ dsa-cheatsheet.md # Quick reference
Algo Sensei is built on research-backed learning principles:
- Socratic Method: Learn through questions, not lectures
- Progressive Disclosure: Start simple, add complexity gradually
- Pattern Recognition: Master frameworks, not individual problems
- Deliberate Practice: Struggle productively with guidance
- Metacognition: Understand your thinking process
The goal isn't solving 1000 problems. It's building the mental framework to solve ANY problem.
- Core 5 modes (Tutor, Hint, Review, Interview, Pattern Mapper)
- Dynamic pattern recognition (leverages Claude's full knowledge)
- Multi-language support (Python, Java, C++, JavaScript, Go, etc.)
- Interactive visualization scripts
- Complexity analyzer tool
- Test case generator
- Spaced repetition integration
- Progress tracking across sessions
We welcome contributions! See CONTRIBUTING.md for guidelines.
Ideas for contributions:
- Improve mode instructions based on user feedback
- Add more language-specific examples
- Create automation scripts (test generators, complexity analyzers)
- Bug fixes and improvements
- Documentation enhancements
Q: Do I need Claude Code to use this? A: Algo Sensei works best with Claude Code, but you can use individual mode files as prompts in Claude.ai.
Q: Is this better than LeetCode Premium? A: Different purposes. Algo Sensei teaches you HOW to think. LeetCode Premium gives you solutions. Use both!
Q: Can this help me pass FAANG interviews? A: Yes! Interview Mode simulates real interview conditions, and Pattern Mapper teaches the frameworks used in top companies.
Q: I'm a complete beginner. Is this for me? A: Absolutely! Tutor Mode is designed for beginners. Algo Sensei adapts to your level.
Q: Does it support languages other than Python? A: Yes! Algo Sensei supports all major programming languages (Python, JavaScript, Java, C++, Go, TypeScript, Rust, etc.). Just specify your preferred language and Claude will adapt accordingly.
MIT License - See LICENSE file for details.
- Built for Claude Code by Anthropic
- Inspired by the LeetCode community
- Pattern frameworks from NeetCode, AlgoMonster, and interview experience
- β Star this repo if Algo Sensei helped you!
- π Report issues via GitHub Issues
- π‘ Suggest features via GitHub Discussions
- π¦ Share your success:
#AlgoSensei
Ready to level up your DSA game? Install Algo Sensei and master patterns, not just problems. π₯
Made with β€οΈ for developers preparing for their dream roles.
