Skip to content

Saloni6111/DSA_Problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacktoberfest-2024

Contributing to DSA Solutions

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.

How to Contribute

1. Fork the Repository

Start by forking this repository to your own GitHub account by clicking the “Fork” button at the top right of this page.

2. Clone the Repository

Once you have forked the repository, clone it to your local machine:

git clone https://github.com/Saloni6111/DSA_Problems-Hacktoberfest-2024.git

3. Create a Branch

Before you make any changes, create a new branch for your contribution:

git checkout -b your-branch-name

4. Solve a DSA Problem

Choose a Data Structures and Algorithms problem from the issues page, or solve any of the DSA questions listed in the repository.

5. Follow the Code Guidelines

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 like problem-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]

6. Make a Pull Request

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.”

7. Get Merged!

Once your pull request is approved, it will be merged into the main branch, and you’ll officially be a contributor!


Project Structure

 ├── C/
 ├── C++/
 ├── Java/
 ├── Python/
 └── JavaScript/

Each language has its own folder. Please place your solution in the appropriate folder.

Issue Reporting

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.

Hacktoberfest

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.