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
-
Fork the repository to your GitHub account
-
Create a new feature branch
git checkout -b solution-problem-name
-
Go to the problem you want to solve in the problems/ folder
-
Add your solution file (Python, C++, or both)
Examples:
solution.py
solution.cpp
-
Ensure your solution is:
• Optimal
• Clean and readable
• Uses efficient algorithms
• Matches the constraints of the problem -
Stage your changes
git add <files>
- Commit with a meaningful message
git commit -m "Add optimal solution for problem X"
- Push to your fork
git push origin <branch-name>
- 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.