LeetCode Platform Guide
Overview
LeetCode is a comprehensive platform for practicing data structures and algorithms, with 2000+ problems across various topics and difficulty levels.
๐ Repository Structure
leetcode/
โโโ easy/
โโโ medium/
โโโ hard/
Each problem follows the naming convention: {number}-{problem-slug}/
Example: leetcode/medium/0003-longest-substring-without-repeating-characters/
๐ Current Progress
- Total Problems: 157
- Easy: 80
- Medium: 65
- Hard: 12
๐ฏ Problem Format
Each problem directory contains:
README.md- Problem description, examples, constraints{problem-name}.jsor{problem-name}.ts- Main solution{problem-name}.test.js- Test cases (optional)- Analysis files in
docs/analysis/(auto-generated)
๐ Resources
๐ Recommended Learning Path
Phase 1: Fundamentals (Easy)
- Arrays & Strings
- Hash Tables
- Two Pointers
- Basic Recursion
Phase 2: Core Patterns (Medium)
- Sliding Window
- Binary Search
- DFS/BFS
- Dynamic Programming (intro)
Phase 3: Advanced (Hard)
- Advanced DP
- Graph Algorithms
- Complex Data Structures
- Optimization Problems
๐ก Tips for LeetCode
- Read constraints carefully - They often hint at the solution approach
- Start with brute force - Then optimize
- Practice patterns - Group similar problems together
- Time yourself - Aim for 30-45 minutes per problem in practice
- Review solutions - Even after solving, read top solutions
๐ท๏ธ Topics Covered
This repository organizes LeetCode problems by:
- Difficulty: Easy, Medium, Hard
- Data Structure: Arrays, Trees, Graphs, etc.
- Algorithm: Two Pointers, Sliding Window, DP, etc.
- Company Tags: (tracked separately)
๐ Solution Guidelines
See CLAUDE.md for detailed code review and solution guidelines specific to this repository.