Skip to content

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ LeetCode Pattern Mastery System

An AI-powered learning system designed to help you master coding patterns instead of just grinding problems. Learn smarter, not harder.

🎯 Philosophy

Patterns over Problems: Understanding 10 patterns deeply is better than memorizing 100 solutions.

Recognition over Memorization: Train your brain to identify patterns in seconds, not minutes.

AI-Assisted Learning: Use Claude/AI as your personal coding coach for guided learning.

πŸ“Š What's Inside

This repository contains:

  • 10 Core Coding Patterns with templates and recognition guides
  • 100 Curated Problems strategically ordered for learning
  • AI Coach System for guided, Socratic learning
  • Progress Tracking with spaced repetition
  • Code Templates for quick reference
  • Logs & Analytics to track your improvement

πŸ—‚οΈ Repository Structure

leetcode-coach/
β”œβ”€β”€ README.md                    # You are here
β”œβ”€β”€ MAIN_COACH.md               # AI assistant configuration
β”œβ”€β”€ QUICK_START.md              # Get started in 5 minutes
β”‚
β”œβ”€β”€ patterns/                   # Pattern deep-dives
β”‚   β”œβ”€β”€ 01-two-pointers.md
β”‚   β”œβ”€β”€ 02-sliding-window.md
β”‚   β”œβ”€β”€ 03-fast-slow-pointers.md
β”‚   β”œβ”€β”€ 04-binary-search.md
β”‚   β”œβ”€β”€ 05-tree-dfs.md
β”‚   β”œβ”€β”€ 06-tree-bfs.md
β”‚   β”œβ”€β”€ 07-graph-traversal.md
β”‚   β”œβ”€β”€ 08-dynamic-programming.md
β”‚   β”œβ”€β”€ 09-backtracking.md
β”‚   └── 10-heap.md
β”‚
β”œβ”€β”€ templates/                  # Code templates
β”‚   β”œβ”€β”€ python-templates.md
β”‚   β”œβ”€β”€ javascript-templates.md
β”‚   └── java-templates.md
β”‚
β”œβ”€β”€ problems/                   # Problem organization
β”‚   β”œβ”€β”€ problem-bank.md         # All 100 problems
β”‚   β”œβ”€β”€ by-pattern/             # Organized by pattern
β”‚   β”‚   β”œβ”€β”€ two-pointers.json
β”‚   β”‚   β”œβ”€β”€ sliding-window.json
β”‚   β”‚   └── ...
β”‚   └── by-difficulty/          # Organized by difficulty
β”‚       β”œβ”€β”€ easy.json
β”‚       β”œβ”€β”€ medium.json
β”‚       └── hard.json
β”‚
β”œβ”€β”€ progress/                   # Track your learning
β”‚   β”œβ”€β”€ learning-log.md         # Weekly progress
β”‚   β”œβ”€β”€ pattern-progress.json   # Pattern mastery data
β”‚   └── stats.json              # Overall statistics
β”‚
β”œβ”€β”€ solved/                     # Your solutions
β”‚   β”œβ”€β”€ two-pointers/
β”‚   β”‚   β”œβ”€β”€ lc-167-two-sum-ii.py
β”‚   β”‚   └── lc-15-3sum.py
β”‚   β”œβ”€β”€ sliding-window/
β”‚   └── ...
β”‚
β”œβ”€β”€ logs/                       # Detailed logs
β”‚   β”œβ”€β”€ daily/                  # Daily session logs
β”‚   β”‚   β”œβ”€β”€ 2026-02-13.json
β”‚   β”‚   └── ...
β”‚   └── analytics/              # Performance metrics
β”‚       β”œβ”€β”€ time-tracking.json
β”‚       └── pattern-recognition-speed.json
β”‚
β”œβ”€β”€ config/                     # Configuration
β”‚   β”œβ”€β”€ settings.json           # User preferences
β”‚   └── ai-prompts.md           # Effective prompts
β”‚
└── ui/                         # Future UI (optional)
    β”œβ”€β”€ dashboard/              # Learning dashboard
    β”œβ”€β”€ pattern-trainer/        # Interactive pattern trainer
    └── analytics/              # Progress visualizations

πŸš€ Quick Start

1. Clone & Setup

git clone https://github.com/yourusername/leetcode-coach.git
cd leetcode-coach

2. Choose Your Learning Path

Option A: AI-Guided Learning (Recommended)

# Upload MAIN_COACH.md to Claude.ai
# Say: "Deep dive Two Pointers pattern"
# Start solving problems from problems/problem-bank.md

Option B: Self-Guided Learning

# Read patterns/01-two-pointers.md
# Solve problems from problems/by-pattern/two-pointers.json
# Log progress in progress/learning-log.md

3. Track Your Progress

# Update progress/learning-log.md after each session
# Review progress/pattern-progress.json weekly
# Maintain spaced repetition schedule

πŸ“š Learning Path (12 Weeks)

Weeks Patterns Problems Goal
1-2 Two Pointers 10 Master opposite & same-direction pointers
2-3 Sliding Window 10 Master variable & fixed-size windows
3-4 Binary Search 10 Master search space reduction
4-5 Fast & Slow 10 Master cycle detection & finding middle
5-6 Tree DFS 10 Master recursive tree patterns
6-7 Tree BFS 10 Master level-order traversal
7-9 Graph Traversal 10 Master DFS/BFS on graphs
9-11 Dynamic Programming 10 Master overlapping subproblems
11-12 Backtracking 10 Master constraint satisfaction
12 Heap/PQ 10 Master priority-based problems

πŸŽ“ Daily Routine (90 minutes)

Pattern Study (20 min)

  • Deep dive one pattern
  • Study template and recognition guide
  • Watch explanatory video

Guided Practice (40 min)

  • Problem 1: AI guides, you implement
  • Problem 2: You identify pattern, AI validates
  • Problem 3: Fully independent

Spaced Repetition (30 min)

  • Review previous patterns
  • Solve 1 problem from each mastered pattern

πŸ€– Using AI Effectively

With Claude.ai

  1. Upload MAIN_COACH.md to start a new chat
  2. Use prompts from config/ai-prompts.md
  3. Follow the Socratic learning approach

Example Prompts

"Analyze this problem but don't solve it: [problem]"
"Show me the template for Two Pointers pattern"
"I'm stuck on [part], give me a hint without the answer"
"Review my solution and suggest improvements"

πŸ“ˆ Progress Tracking

Pattern Mastery Criteria

  • βœ… Recognize pattern in <30 seconds
  • βœ… Code template from memory
  • βœ… Solve 5+ problems independently
  • βœ… Explain time/space complexity
  • βœ… Identify 3 similar problems

Files to Update

  • progress/learning-log.md - After each session
  • progress/pattern-progress.json - After completing a pattern
  • logs/daily/YYYY-MM-DD.json - Daily session data

πŸ› οΈ Tech Stack (Future UI)

If you want to build a web UI:

  • Frontend: React + TypeScript + Tailwind
  • Backend: Node.js + Express (optional)
  • Storage: Local JSON files or Firebase
  • Charts: Recharts or D3.js
  • Code Editor: Monaco Editor or CodeMirror

πŸ“Š Features to Build

Phase 1: Core Tracking

  • Problem tracker with status
  • Pattern progress dashboard
  • Spaced repetition scheduler
  • Time tracking per problem

Phase 2: Analytics

  • Pattern recognition speed graph
  • Problems solved over time
  • Difficulty distribution chart
  • Weak pattern identifier

Phase 3: Interactive Features

  • Pattern quiz/flashcards
  • Code template library
  • AI prompt helper
  • Mock interview simulator

Phase 4: Social/Advanced

  • Share progress with friends
  • Compare with community
  • Custom pattern creation
  • Integration with LeetCode API

🀝 Contributing

This is a personal learning repository, but feel free to:

  • Fork it for your own learning
  • Suggest improvements via issues
  • Share your learning insights
  • Contribute additional patterns or problems

πŸ“ License

MIT License - Use it however helps your learning!

πŸ™ Acknowledgments

  • LeetCode for the problem platform
  • Anthropic's Claude for AI-assisted learning
  • The programming community for pattern wisdom

πŸ“ž Support

Having issues or questions?

  • Check QUICK_START.md for common questions
  • Review config/ai-prompts.md for effective AI usage
  • Open an issue on GitHub

Start Date: February 13, 2026
Target Completion: May 15, 2026
Current Progress: 0/10 patterns mastered

Remember: Quality over quantity. Master patterns, don't just solve problems!

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages