Thanks for your interest in contributing to CodeChef-Solutions 🎉
This repository is open for learning, sharing, and collaborating on past CodeChef contest problems — while following fair contest and community rules.
Please strictly follow this folder pattern when adding new solutions:
CodeChef-Solutions/
|- STARTERS-206/
| |- C/
| |- ProblemName/
| | | |- problemname.c
| | | |- problemname.md
| |- C++/
| |- JAVA/
| |- PYTHON/
|- STARTERS-207/
| |- C/
| |- C++/
| |- JAVA/
| |- PYTHON/
- Fork this repository
- Clone your fork:
git clone https://github.com/<your-username>/CodeChef-Solutions.git
Create a new branch:
git checkout -b add/solution-name-cpp
# Branch naming conventions:
# - feature/solution-name-java
# - add/solution-name-c
# - fix/solution-name-pythonExample:
javascript Copy code STARTERS-206/C++/TOURIST/TOURIST.cpp STARTERS-206/C++/TOURIST/TOURIST.md Commit your changes:
git add .
git commit -m "Added [problem name] solution in C++"#Push to your fork:
git push origin add-solution-name
#Create a Pull Request (PR) from your fork → main repo
#Add a clear title and description (problem link + short explanation).##🧠 PR Rules & Quality Checklist Before submitting a PR, ensure that:
✅ The contest has ended (no ongoing contests)
✅ The folder structure follows the format above
✅ You added both .c/.cpp/.py/.java and .md explanation file
✅ Your explanation file includes:
-Problem link
-Approach / logic
-Time and space complexity
✅ Your code is clean, commented, and compiles
✅ PR title is descriptive (e.g., Added Make Subarray solution in C)
✅ No duplicate or spammy PRs
🏷️ Hacktoberfest Note This repository is Hacktoberfest-friendly 🎃 However, only meaningful and quality contributions will be accepted. Low-quality or spam PRs will be marked as invalid and won’t count.
##🚫 Don’ts ❌ Don’t share live contest problems or solutions
❌ Don’t submit code without explanations
❌ Don’t rename or delete others’ files
❌ Don’t submit random or empty PRs for points
Explain your approach briefly.
For example:
- Read input values
- Apply given formula or logic
- Print the result
- Time: O(N)
- Space: O(1) ❤️ Contribution Tips Beginners are welcome!
You can also contribute by fixing typos, improving explanations, or formatting.
If unsure about something, open a Discussion or Issue first.