Skip to content

docs: add code of conduct and contributing guidelines #15

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 1 commit into from
Sep 25, 2023
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
45 changes: 45 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we, as contributors and maintainers, pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject contributions that are not aligned with this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [here](aayushh79@gmail.com) or [here](aaravmishra619@gmail.com). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html), version 2.0, available at [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).

For answers to common questions about this code of conduct, see [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq).
106 changes: 106 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Contributing to [leetcode](https://github.com/ayusshrathore/leetcode)

Thank you for considering contributing to [Your Repository Name]! We welcome contributions from the community to help improve and grow this project. To get started, please follow the guidelines below.

## Getting Started

- Make sure you have a [GitHub account](https://github.com/signup) if you don't already.
- Fork this repository to your GitHub account by clicking the **Fork** button at the top right of this page.
- Clone the forked repository to your local machine:

```bash
git clone https://github.com/ayusshrathore/leetcode
```

- Create a new branch for your changes:

```bash
git checkout -b my-new-branch
```

- Make your changes to the project and commit them. Please follow the [commit message guidelines](#commit-message-guidelines).

- Push your changes to GitHub:

```bash
git push origin my-new-branch
```

- Open a pull request in this repository by clicking the **Pull Request** button at the top right of this page.

- Wait for your pull request to be reviewed and merged.

## Commit Message Guidelines

### Type

- **feat:** Use when adding new features or problems.
- **fix:** Use when fixing bugs.
- **refactor:** Use when refactoring code or making improvements.
- **docs:** Use when updating documentation.
- **test:** Use when adding or modifying tests.
- **chore:** Use for routine tasks, maintenance, or non-code changes.

### Brief Description

Provide a concise description of the change, starting with a verb in the imperative mood (e.g., "Add solution for problem XYZ," "Fix issue with ABC").

### Optional Body

Include a more detailed explanation if the brief description is not sufficient. Describe the problem, solution, and relevant context. You can use bullet points or paragraphs for clarity.

### Optional Footer

- Reference related issues or pull requests using `Closes #issue-number` or `Fixes #issue-number` to automatically close them when the commit is merged.
- Include any breaking changes or important information for other contributors.

#### Examples

- Adding a new LeetCode problem:

```
feat: Add solution for problem 123
```

- Fixing a bug in an existing solution:

> Correct an edge case handling bug in the Python solution.
> Fixes #456

```
fix: Fix issue with solution for problem 456
```

- Refactoring an existing solution:

> Simplify algorithm logic for problem 789.

> Enhance code comments for clarity.

```
refactor: Improve code structure in solution for problem 789
```

- Updating documentation:

```
docs: Update README with instructions for contributions
```

> **Note**: For more information on commit message guidelines, see [conventionalcommits](https://www.conventionalcommits.org/en/v1.0.0/).

## Organizing and Solving Problems

<!-- create an nice looking path list -->

- Browse through the existing sections in the repository to find the topic or category where you'd like to contribute.

- If you're adding a new problem, make sure it's not already in the repository to avoid duplicates. If it's not already in the repository, create a new folder with a README.md file inside it. The README.md file should contain a brief description of the problem, a link to the problem on LeetCode, and a link to the solution.

- Create a new directory under the appropriate section for your problem (e.g., arrays, strings, trees, etc.).

- Add your problem's code in a language-specific subdirectory within the problem's directory (e.g., python, java, cpp, etc.).

- Include a clear and concise solution description in Markdown format. You can create a separate Markdown file within the problem's directory or add it as comments in your code.

- Ensure your code follows the coding conventions and style guide of the repository.
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Welcome to the LeetCoding Quest for Hacktoberfest 2023! 🚀

Unleash your coding prowess and join us on an epic journey through the LeetCode universe! 🌌

<p align="center">
<img src="https://hacktoberfest.com/_next/static/media/logo-hacktoberfest--logomark.b91c17d2.svg" alt="LeetCoding" width="200">

</p>

## About This Repository

This repository is your passport to the world of LeetCode problem-solving. Here, we tackle challenges, unlock algorithmic mysteries, and share our solutions with fellow developers. Whether you're a coding prodigy or just embarking on your coding adventure, this repository is your trusty companion.

## Hacktoberfest 2023

Hold on tight because we're taking part in Hacktoberfest 2023! 🎉 Hacktoberfest is that special time of the year when we celebrate open source, learn from each other, and make the digital world a better place. Join the fun, contribute, and let's make this Hacktoberfest unforgettable!

### How to Join Hacktoberfest as a Contributor

Joining Hacktoberfest as a contributor is as easy as 1-2-3:

1. **Sign Up**: Register for Hacktoberfest on the [official website](https://hacktoberfest.digitalocean.com/).

2. **Find Projects**: Explore open source projects on GitHub, like ours, and contribute by creating pull requests. Remember, quality contributions matter!

3. **Contribute**: Submit at least four pull requests

## How to Contribute

Ready to be a hero of Hacktoberfest? Here's how to jump in:

1. Fork this repository.
2. Choose a LeetCode problem that piques your interest.
3. Create a new branch for your coding adventure.
4. Solve the problem, add your code, and explain your wizardry.
5. Push your changes to your GitHub fortress.
6. Summon a pull request to this repository.

No matter your coding level, your contributions are pure gold. Whether you're wielding a keyboard for the first time or you're a battle-hardened developer, your journey is important to us.

## Getting Help

Should you need guidance on your quest, encounter dragons, or seek wisdom, open an issue in this repository. We'll be your mentors, companions, and fellow adventurers!

Ready to embark on the LeetCoding Quest for Hacktoberfest 2023? Let's write some code and make magic happen! 🔮✨

## Contributing

Contributions are welcome and greatly appreciated! Please follow the [guidelines](CONTRIBUTING.md) when contributing to this project.

## Code of Conduct

Make sure to review and follow the [Code of Conduct](CODE_OF_CONDUCT.md) when contributing to this project.

## Reporting Issues

If you encounter any issues or have suggestions for improvements, please [open an issue](https://github.com/ayusshrathore/leetcode/issues) on the GitHub repository.