Skip to content

Latest commit

 

History

History
80 lines (50 loc) · 2.52 KB

CONTRIBUTING.md

File metadata and controls

80 lines (50 loc) · 2.52 KB

Contributing to LeetCode Daily Problems

Thank you for your interest in contributing to this open-source project! 🚀This repository is for solving LeetCode Daily Problems in different programming languages and approaches. Follow the guidelines below to contribute effectively.

📌 How to Contribute?

1️⃣ Fork the Repository

  • Click the Fork button at the top right of this repo.
  • Clone your forked repository to your local system.
    git clone https://github.com/vishwajeetmishra4/Leetcode-Daily.git
  • Navigate into the project directory.
    cd LeetCode-Daily

2️⃣ Create a New Branch

  • Always work on a new branch.
    git checkout -b your-branch-name

3️⃣ Add a New Solution

  • Navigate to the problems directory.
  • Create a new file with the Problem Name.
    problem.java, problem.py,problem.cpp
  • Add a problem Decription with adding the TestCase (copy the problem statement from LeetCode).

4️⃣ Write Solution in Speicfic Language folder only

Inside this Repository we've create subfolders for different languages. Write your solution in that specific folder only. Do not mix different files in folders.

  
├── Java/
│   ├── solution.java
├── Python/
│   ├── solution.py
├── C++/
│   ├── solution.cpp

Write a clean, well-documented solution.

5️⃣ Commit Your Changes

  • Add your files:
    git add .

  • Commit your changes:
    git commit -m "Added solution for problem in Java/Python/C++"

5️⃣ Push and Create a Pull Request

  • Push your branch:
    git push origin your-branch-name

  • Go to your forked repo on GitHub and click Compare & pull request.

  • Add a meaningful description and submit the PR.

  • Wait for a maintainer to review your PR. 🎯

🔍Issues & Discussions

Contribution Rules

  • Multiple Solutions Allowed: You can submit solutions in any programming language.

  • Code Readability: Ensure proper comments and variable naming.

  • No Plagiarism: Copying code from other sources without modification is not allowed.

  • One PR per Problem: Submit only one problem per pull request.

Join the Discussions tab or open an Issue for any queries.

Happy Coding! 💻🚀