Skip to content

Latest commit

 

History

History
87 lines (56 loc) · 1.93 KB

File metadata and controls

87 lines (56 loc) · 1.93 KB

Contributing Guidelines

This repository contains only problem explanations and hints, and contributors are expected to add:
• Optimal solutions
• Clean, well-structured code
• Clear explanation of their approach

Please read the guidelines below before contributing.


How to Contribute

  1. Fork the repository to your GitHub account

  2. Create a new feature branch

git checkout -b solution-problem-name

  1. Go to the problem you want to solve in the problems/ folder

  2. Add your solution file (Python, C++, or both)

Examples:
solution.py
solution.cpp

  1. Ensure your solution is:
    • Optimal
    • Clean and readable
    • Uses efficient algorithms
    • Matches the constraints of the problem

  2. Stage your changes

git add <files>

  1. Commit with a meaningful message

git commit -m "Add optimal solution for problem X"

  1. Push to your fork

git push origin <branch-name>

  1. Open a Pull Request with:
    • Clear title
    • Explanation of your solution and its complexity
    • Why your approach is optimal
    • If needed, include time/space analysis

Pull Request Requirements

• Your code must run without errors
• Your solution should be optimal or near-optimal
• Avoid brute force unless justified
• Follow clean coding practices
• Include comments for non-obvious logic
• Do not modify the original problem or hints


Issue Guidelines

Before creating an issue:
• Check if one already exists
• Provide a clear description of the bug or suggestion
• Attach logs or screenshots if applicable
• Suggest improvements or your perspective


Coding Practices for Contributors

General:
• Always include time and space complexity
• Write your own solution—no plagiarism


Code of Conduct

Be respectful, helpful, and constructive.
All contributors are welcome, regardless of experience level.