This repository contains carefully selected interesting and valuable LeetCode problems and their solutions implemented in C++. It focuses on problems that teach important algorithmic concepts and are frequently asked in technical interviews.
| # | Problem | Difficulty | Topic |
|---|---|---|---|
| 1 | Longest Common Subsequence | Medium | Dynamic Programming |
| 2 | Minimum Element After Digit Sum Replacement | Medium | Simulation |
| 3 | Basic Calculator | Hard | Stack, String Parsing |
| 4 | Excel Sheet Column Number | Easy | Math |
| 5 | Find Duplicate Number | Medium | Array, Two Pointers |
| 6 | Longest Palindrome Substring | Medium | String, Dynamic Programming |
| 7 | Permutation in String | Medium | Sliding Window |
| 8 | Permutations | Medium | Backtracking |
| 9 | Remove All Adjacent Duplicates in String | Easy | Stack |
| 10 | Search Insert Position | Easy | Binary Search |
| 11 | Spiral Matrix | Medium | Matrix, Simulation |
| 12 | String Compression | Medium | String, Two Pointers |
| 13 | Super Power | Medium | Math, Modular Arithmetic |
| 14 | Walking Robot | Medium | Simulation, Set |
| 15 | Walking Robot II | Hard | Simulation, Complex Logic |
- Dynamic Programming: Longest Common Subsequence, Longest Palindrome Substring
- Backtracking: Permutations
- Sliding Window: Permutation in String
- Stack: Basic Calculator, Remove Adjacent Duplicates
- Binary Search: Search Insert Position
- Array Techniques: Find Duplicate, Spiral Matrix
- String Processing: String Compression, Excel Sheet Column
- Simulation: Walking Robot, Walking Robot II
- Math: Super Power, Modular Arithmetic
-
Clone the repository:
git clone https://github.com/Myparadox-creator/C-_leetcode.git
-
Browse through the problems by difficulty level or topic.
-
Check individual files for:
- Well-documented C++ solutions
- Algorithm explanations
- Time and space complexity analysis
- Edge cases handled
- ✅ Quality Over Quantity: Only the most valuable and insightful problems
- 🎓 Interview Ready: Problems frequently asked in technical interviews
- 📖 Learning Resource: Each solution demonstrates important algorithmic patterns
- 🔍 Well-Organized: Problems categorized by difficulty and topic
- 💻 Production-Grade Code: Well-structured and commented solutions
Contributions are welcome! You can:
- Suggest optimizations for existing solutions
- Add more valuable problems and solutions
- Improve explanations or documentation
- Fix bugs or edge cases
This repository is under the MIT License.
Happy coding! 🚀