Skip to content

Leetcode 75 #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Contributing to LeetCode Python Solutions

Thank you for considering contributing to this repository! Your contributions help make this project better and more comprehensive for everyone. Follow the guidelines below to ensure a smooth contribution process.

---

## 📜 Table of Contents

- [Getting Started](#getting-started)
- [How to Contribute](#how-to-contribute)
- [1. Fork the Repository](#1-fork-the-repository)
- [2. Clone Your Fork](#2-clone-your-fork)
- [3. Create a New Branch](#3-create-a-new-branch)
- [4. Add Your Contribution](#4-add-your-contribution)
- [5. Commit Your Changes](#5-commit-your-changes)
- [6. Push to Your Fork](#6-push-to-your-fork)
- [7. Submit a Pull Request](#7-submit-a-pull-request)
- [Contribution Guidelines](#contribution-guidelines)
- [Code of Conduct](#code-of-conduct)
- [Need Help?](#need-help)

---

## Getting Started

1. Ensure you have [Git](https://git-scm.com/) installed on your system.
2. Familiarize yourself with the structure of this repository.
3. Make sure you have a GitHub account. If not, you can create one [here](https://github.com/).

---

## How to Contribute

### 1. Fork the Repository

Click the **Fork** button at the top-right corner of this repository to create a copy of it in your GitHub account.

### 2. Clone Your Fork

Clone your forked repository to your local machine using the following command:

```bash
git clone https://github.com/<your-username>/LeetCode-Python-Solutions.git
```

### 3. Create a New Branch

Create a new branch for your contribution. Use a descriptive name for your branch:

```bash
git checkout -b add-solution-<problem-id>
```

### 4. Add Your Contribution

- Navigate to the appropriate folder in the `Solution/` directory.
- Add your solution file (e.g., `problem-id.py`) and update the `readme.md` file in the corresponding folder.
- Ensure your code is well-documented and follows the repository's coding style.

### 5. Commit Your Changes

Commit your changes with a meaningful commit message:

```bash
git add .
git commit -m "Add solution for problem <problem-id>: <problem-title>"
```

### 6. Push to Your Fork

Push your changes to your forked repository:

```bash
git push origin add-solution-<problem-id>
```

### 7. Submit a Pull Request

1. Go to the original repository on GitHub.
2. Click the **Pull Requests** tab.
3. Click **New Pull Request**.
4. Select your branch and submit the pull request with a detailed description of your changes.

---

## Contribution Guidelines

1. **Follow the Repository Structure**: Ensure your contributions are added to the correct folder.
2. **Write Clean Code**: Use meaningful variable names, add comments, and follow Python best practices.
3. **Update Documentation**: If you add a new solution, update the corresponding `readme.md` file with the problem description, examples, and your solution.
4. **Test Your Code**: Ensure your code runs without errors and passes all test cases.
5. **Be Respectful**: Follow the [Code of Conduct](#code-of-conduct).

---

## Code of Conduct

We are committed to fostering a welcoming and inclusive environment. By participating in this project, you agree to abide by our [Code of Conduct](CODE_OF_CONDUCT.md).

---

## Need Help?

If you have any questions or need assistance, feel free to:

- Open an issue in the repository.
- Reach out to the maintainers via GitHub.

---

Thank you for contributing! Together, we can make this repository a valuable resource for the coding community.
7 changes: 0 additions & 7 deletions Solution/2300. Successful Pairs of Spells and Potions.py

This file was deleted.