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:
- Clone the repository to your local machine:
git clone https://github.com/shumbul/21-Days-DSA-Challenge.git
- Create a new branch for your contributions:
git checkout -b feature/day-X-language
Example
git checkout -b feature/day-2-cpp
-
Navigate to the specific day's directory (Day-X).
-
If your programming language (e.g., CPP, Python, Java) folder doesn't exist, create one.
-
Add your code files to the respective language directory.
-
Make sure your code follows the repository's code structure and naming conventions.
-
Include a brief description of your code or any additional information in a README.md file within your folder.
-
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
-
Commit your changes:
git add . git commit -m "feat: Added Day-X solution in CPP/Python/Java"
-
Push your changes to your forked repository:
git push origin feature/day-X-language
-
Open a Pull Request (PR) from your forked repository to the main repository.
-
Ensure your PR title and description are descriptive and concise.
-
Wait for maintainers' review and address any feedback or comments if required.
- 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.