Thank you for your interest in contributing to this project! We’re thrilled to have you participate. Below are some guidelines to help you get started.
Start by forking this repository to your own GitHub account by clicking the “Fork” button at the top right of this page.
Once you have forked the repository, clone it to your local machine:
git clone https://github.com/Saloni6111/DSA_Problems-Hacktoberfest-2024.git
Before you make any changes, create a new branch for your contribution:
git checkout -b your-branch-name
Choose a Data Structures and Algorithms problem from the issues page, or solve any of the DSA questions listed in the repository.
Please ensure that your code follows these guidelines:
-
Languages Accepted:
We currently accept solutions in all languages. Add your solution under the corresponding folder, if folder is not there please create it. -
Filename Convention:
Use meaningful names for the files likeproblem-name.ext
. For example:two-sum.py
reverse-linkedlist.cpp
-
Comments:
Add comments in your code to explain the logic, especially for tricky parts. This will help others understand your thought process and make reviewing your code easier. -
Test Cases:
Ensure your solution covers edge cases and provide relevant test cases within the code comments. Example:# Test case 1: [1, 2, 3], target = 5 # Expected output: [1, 2]
Once you’ve committed your changes, push the branch to your forked repository and open a pull request:
git push origin your-branch-name
Go to the original repository on GitHub and click “New Pull Request.”
Once your pull request is approved, it will be merged into the main branch, and you’ll officially be a contributor!
├── C/
├── C++/
├── Java/
├── Python/
└── JavaScript/
Each language has its own folder. Please place your solution in the appropriate folder.
If you find a bug or want to suggest an improvement, feel free to open an issue here. We’ll try to address them as soon as possible.
This repository is participating in Hacktoberfest 2024! Make sure your pull requests follow Hacktoberfest's official rules. Remember, only meaningful contributions will be accepted for the event.