Welcome to the Competitive Programming Repository, your all-in-one resource to master core algorithms and problem-solving techniques! This repository contains categorized competitive programming topics with curated questions aimed at helping you learn, practice, and strengthen your skills for coding contests, interviews, and assessments.
The repository is organized into folders, each dedicated to a specific CP topic. Inside each folder, you'll find high-quality, handpicked questions designed to enhance your understanding and problem-solving strategies.
- Greedy
- Binary Search
- Recursion
- Dynamic Programming
- Number Theory
- Prefix Sum
- Bit Manipulation
- Graphs
- Combinatorics
- Sliding Window / Two Pointers
- Game Theory
- Range Queries (Segment Tree / Fenwick Tree)
- Navigate to the folder of your chosen topic.
- Pick a question you'd like to solve.
- Write your solution, test it thoroughly, and refine it.
- Contribute back by submitting your optimized solution!
We welcome contributions from developers of all levels! Follow these steps to contribute:
Create your own copy of this repository.
Clone your fork to your local machine.
Make a new branch for your feature or solution.
git checkout -b new-branch-name
Example:
feature/add-greedy-solutions
- Navigate to the appropriate topic folder (e.g.,
graphs/). - Add your solution file using the following naming format:
githubUsername--questionName.extension
Example:
johnDoe--Q11.RotateImage.cpp
- Make sure your code is clean, follows best coding practices, and includes comments for clarity.
Push to your forked repo and create a PR. Your submission will be reviewed, approved, and merged!
- Submit only unique and optimized solutions.
- Avoid images or PDF submissions.
- Follow consistent coding standards.
- Add comments wherever needed for better readability.
- Be respectful and inclusive when communicating or collaborating.
Boost your knowledge with these excellent resources:
- GeeksforGeeks – DSA & Algorithm Guides
- Striver’s DSA Series (YouTube)
- LeetCode – CP & Interview Problems
- Codeforces / AtCoder – Contest Practice
Contributors will receive:
- 📝 Certificates of Contribution
- 🎁 Goodies
- 🌟 Special shoutouts in the repository
Your contributions help the community grow — thank you for being part of this journey!
Feel free to reach out to the maintainers if you have any questions or suggestions.
🔹 Game Theory / Range Queries
👉 Aditi Mehta - @aditi75432
🔹 Greedy / Binary Search
👉 Harshita - @codeX-Crafter
🔹 Recursion / Dynamic Programming
👉 Shambhavi - @Shambaby
🔹 Number Theory / Prefix Sum
👉 Tammana - @Tammana17
🔹 Bit Manipulation / Graphs
👉 Sanika - @sanikakhanduja
🔹 Combinatorics / Sliding Window / Two Pointers
👉 Jaismeen - @Jaismeen777
We welcome collaborators! Join us in building a strong, beginner-friendly CP resource for the community.
Happy Coding and Keep Contributing! 💻✨