This repository contains my personal solutions to problems from LeetCode, Codeforces, and CodeChef contests. Here, you will find solutions that I submitted during the contests as well as additional problems solved afterward as part of my upsolving practice.
- Overview 🌐
- Platforms 🔗
- Folder Structure 🗂️
- How to Use 📝
- Contributing 🤝
- License 📃
Competitive programming is an excellent way to enhance problem-solving skills and improve coding proficiency. This repository showcases my journey and growth through contests and practice problems from popular competitive programming platforms.
The solutions are categorized based on the platforms:
- LeetCode: Focuses on various data structures, algorithms, and problem-solving patterns.
- Codeforces: Features a mix of challenging problems, suitable for practicing speed and precision.
- CodeChef: Provides monthly contests and a wide range of practice problems for honing skills.
/root-directory
|-- leetcode/ # Solutions for LeetCode problems
| |-- problem-name-or-id/ # Each problem has its own folder
| | |-- solution.cpp # Solution file (C++)
|-- codeforces/ # Solutions for Codeforces contests
| |-- contest-id/ # Contest folders based on contest ID
| | |-- problem-A.cpp # Problem A solution
| | |-- problem-B.cpp # Problem B solution
|-- codechef/ # Solutions for CodeChef contests
| |-- contest-name/ # Contest folder based on name (e.g., START, COOKOFF)
| | |-- problem-id.cpp # Problem solution file
|-- README.md # Project README file
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/competitive-programming-solutions.git
-
Navigate to the desired platform folder and locate the problem you need:
cd leetcode/problem-name-or-id
-
Open the solution file in your preferred code editor.
-
Run the code using your local compiler or an online IDE for testing.
Contributions are welcome! If you have a more efficient solution or additional test cases for any problem, feel free to fork this repository, make your changes, and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy Coding! 😊🚀