Skip to content

Chinmay048/competitive-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

193 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Competitive Programming Solutions

Welcome to my competitive programming journey! This repository contains my solutions to problems from LeetCode and CodeForces with detailed explanations, approaches, and complexity analysis.

Progress Tracker

LeetCode

  • Easy: 14 problems solved
  • Medium: 3 problems solved
  • Hard: 0 problems solved
  • Total: 17 problems

CodeForces

  • 800 Rating: 1 problem solved
  • Total: 1 problem

Repository Structure

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
    

Languages & Tools

C++ Git VS Code


What You'll Find Here

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


How to Navigate

For LeetCode:

LeetCode/[Difficulty]/[Problem-Number]-[Problem-Name]/

Example: LeetCode/Easy/001-two-sum/

For CodeForces:

CodeForces/[Division]/Round-[Number]/Problem-[Letter]/

Example: CodeForces/Division-2/Round-850/Problem-A/


Study Approach

  1. Understand the problem thoroughly
  2. Plan the approach before coding
  3. Implement a brute force solution first
  4. Optimize for better time/space complexity
  5. Test with multiple test cases
  6. Document the solution with explanations

Commit Convention

 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

Repository Highlights

  • 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

License

This project is licensed under the MIT License - feel free to use these solutions for learning purposes!


Quote

"The only way to learn a new programming language is by writing programs in it." - Dennis Ritchie


### Star this repository if you find it helpful!

About

My solutions to LeetCode and CodeForces problems with detailed explanations

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors