Thank you for your interest in contributing! 🎉
This project welcomes contributions that help others learn and grow 💡
- Fork the Repository
Start by forking this repository to your own GitHub account.
-
Clone the Repository
-
Create a New Branch
Create a new branch for your change:
git checkout -b add-problem-name
If you're adding a new LeetCode problem, follow these steps:
-
Create a new folder inside the root directory with the exact problem name.
Example:Add_Two_Numbers
-
Inside that folder, create a new subfolder with the name of the programming language (e.g.
C
,Python
,Java
, etc.) -
Add your solution file there (e.g.
solution.c
). -
Create a
README.md
inside the problem folder explaining briefly:- The idea of your solution
- Time and space complexity (optional)
- Any edge cases handled
-
Update the main
README.md
file:- Add a new entry in the table with:
- Problem ID (LeetCode ID)
- Problem Title (with a link to the LeetCode problem)
- Link to your solution (to this repo)
- Difficulty
- Add a new entry in the table with:
If the problem already exists, and you just want to add a new language version:
- Navigate to the problem's folder.
- Create a new folder for the language (e.g.
Python
). - Add your solution file (e.g.
solution.py
) and update theREADME.md
in that folder if needed. - No need to add a new row in the main table — just add a new link inside the existing row
- Make sure your code compiles/runs correctly.
- Keep folder and file names clean and consistent.
- Open a pull request with a clear title and description.