Skip to content

Latest commit

 

History

History
116 lines (86 loc) · 2.67 KB

File metadata and controls

116 lines (86 loc) · 2.67 KB

🧭 Contributing Guidelines

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.


⚙️ Folder Structure

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/

🚀 Steps to Contribute

  1. Fork this repository
  2. 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-python

Add your solution under the correct contest & language folder

Example:

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

🧠 Approach

Explain your approach briefly.
For example:

  • Read input values
  • Apply given formula or logic
  • Print the result

⏱️ Complexity

  • 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.