LeetCode Solutions
This LeetCode Solutions column contains algorithm problem solutions, including clear problem analysis, multi-language implementations (Python/Go), and complexity analysis to help you efficiently prepare for algorithm interviews.
Problem Categories
Easy
Foundational algorithm problems for beginners to practice and reinforce core concepts.
Medium
Classic interview questions worth revisiting and practicing systematically.
Hard
Advanced algorithm challenges for deeper understanding and problem-solving skills.
| Problem | Link |
|---|---|
| 37 | Sudoku Solver |
| 952 | Largest Component Size by Common Factor |
| - | Regular Expression Matching |
General Techniques
Universal problem-solving methods and templates across different problem types.
| Technique | Link |
|---|---|
| Common STL Operations | 常用 STL 操作 |
| Sliding Window专题 | Sliding Window专题 |
Core Topics
- Sliding Window - Two-pointer technique for efficient subarray/substring problems
- Binary Search - Efficient search strategy for sorted data
- Dynamic Programming - Optimal substructure problem decomposition
- DFS/BFS - Tree and graph traversal methods
- Backtracking - Exhaustive search for finding all solutions
- Bit Manipulation - Optimize space and time complexity using bit operations
Each solution includes clear problem analysis, multi-language code implementations, and complexity analysis. Practice systematically by problem type for best results.