A collection of LeetCode problem solutions implemented in Python with detailed complexity analysis and test coverage.
- Python Solutions: All solutions written in Python 3
- Testing: pytest test coverage for all solutions
- Complexity Analysis: Detailed time and space complexity documentation for each solution
- Organized Structure: Problems organized by difficulty level (Easy, Medium, Hard)
🔄 Currently migrating from old structure to new directory structure
This project is being reorganized.
- ✅ Migrated problems in
problems/directory - ⏳ Legacy problems still being migrated
leetcode/
├── problems/
│ ├── easy/ # Easy difficulty problems
│ ├── medium/ # Medium difficulty problems
│ └── hard/ # Hard difficulty problems
├── docs/ # Detailed problem lists by difficulty
├── tests/ # Test utilities and fixtures
└── utils/ # Shared utilities and helpers
Each problem follows this structure:
{difficulty}/{problem-name}_{number}/
├── solution.py # Solution implementation
├── test_solution.py # Test cases
└── __init__.py # Package initialization
📊 Statistics: 85 problems solved (migrated to new structure)
| Difficulty | Count |
|---|---|
| Easy | 60 |
| Medium | 24 |
| Hard | 1 |