Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.95 KB

contributing.md

File metadata and controls

76 lines (47 loc) · 1.95 KB

Contributing to the 21 Days DSA Challenge

Welcome to the 21 Days DSA Challenge repository! We encourage and appreciate contributions from all participants. To ensure a smooth process, please follow these guidelines when adding your code:

Getting Started

  1. Clone the repository to your local machine:
    git clone https://github.com/shumbul/21-Days-DSA-Challenge.git
    
  2. Create a new branch for your contributions:
 git checkout -b feature/day-X-language
 
Example

git checkout -b feature/day-2-cpp

Adding Code

  1. Navigate to the specific day's directory (Day-X).

  2. If your programming language (e.g., CPP, Python, Java) folder doesn't exist, create one.

  3. Add your code files to the respective language directory.

  4. Make sure your code follows the repository's code structure and naming conventions.

  5. Include a brief description of your code or any additional information in a README.md file within your folder.

  6. Add comments in your code to mention:

  • Time Complexity
  • Space Complexity
  • Author Name

Example:

// Author: Your Name
// Time Complexity: O(n)
// Space Complexity: O(1)

// Your code goes here

Submitting a Pull Request (PR)

  1. Commit your changes:

    git add .
    git commit -m "feat: Added Day-X solution in CPP/Python/Java"
    
  2. Push your changes to your forked repository:

    git push origin feature/day-X-language
    
  3. Open a Pull Request (PR) from your forked repository to the main repository.

  4. Ensure your PR title and description are descriptive and concise.

  5. Wait for maintainers' review and address any feedback or comments if required.

    Code Guidelines

  • Follow best practices and ensure your code is readable.
  • Add comments or documentation where necessary to explain your approach. I- nclude time and space complexity analysis along with author name in your code comments.
  • Avoid submitting code that violates plagiarism or copying guidelines.