Welcome to my competitive programming journey! This repository contains my solutions to problems from LeetCode and CodeForces with detailed explanations, approaches, and complexity analysis.
- Easy: 14 problems solved
- Medium: 3 problems solved
- Hard: 0 problems solved
- Total: 17 problems
- 800 Rating: 1 problem solved
- Total: 1 problem
competitive-programming/
│
├── README.md # You are here!
│
├── LeetCode/
│ ├── README.md # LeetCode overview & statistics
│ ├── Easy/
│ │ └── [problem-number]-[problem-name]/
│ │ ├── solution.[ext] # Code solution
│ │ └── README. md # Problem description & explanation
│ ├── Medium/
│ │ └── [problem-number]-[problem-name]/
│ │ ├── solution.[ext]
│ │ └── README.md
│ └── Hard/
│ └── [problem-number]-[problem-name]/
│ ├── solution.[ext]
│ └── README.md
│
└── CodeForces/
├── README.md # CodeForces overview & statistics
├── 800-Rating/
└── Round-[number]/
└── Problem-[letter]/
├── solution.[ext]
└── README.md
Each problem solution includes:
Clean, Well-Commented Code - Easy to understand implementations
Detailed Explanations - Step-by-step breakdown of the approach
Complexity Analysis - Time and space complexity explained
Multiple Approaches - Different solutions when applicable
Test Cases - Example inputs and outputs
Key Learnings - Important takeaways and patterns
LeetCode/[Difficulty]/[Problem-Number]-[Problem-Name]/
Example: LeetCode/Easy/001-two-sum/
CodeForces/[Division]/Round-[Number]/Problem-[Letter]/
Example: CodeForces/Division-2/Round-850/Problem-A/
- Understand the problem thoroughly
- Plan the approach before coding
- Implement a brute force solution first
- Optimize for better time/space complexity
- Test with multiple test cases
- Document the solution with explanations
Add:New problem solution
Update: Improved existing solution
Fix: Corrected bug or error
Docs: Updated documentation
Refactor: Code restructuring
Example Commit Messages:
Add: LeetCode #1 Two Sum (Easy)Update: Optimized LeetCode #15 solution O(n²)Docs: Added complexity analysis to CF Round 850-A
- Regular Updates: New solutions added consistently
- Beginner Friendly: Detailed explanations for learning
- Interview Prep: Focuses on commonly asked problems
- Clean Code: Follows best practices and coding standards
- Community: Open for discussions and improvements
This project is licensed under the MIT License - feel free to use these solutions for learning purposes!
"The only way to learn a new programming language is by writing programs in it." - Dennis Ritchie