Here, I share real-world coding problems which I encounter during internships and open source contributions.
I have an interesting question to share
or
-
-
At the top right corner of the page, click on the
Forkbutton -
After forking, you will be redirected to a screen of creating a new repo with a
Create Forkbutton. -
Click on the
Create Forkbutton.
-
-
-
After creating the repo, find and click on the
Clonebutton. -
Copy the link by clicking on the copy icon.
-
-
git clone https://github.com/<your_github_username>/coding-challenges.git
or
git clone git@github.com:<your_github_username>/coding-challenges.git
-
-
Open the folder
coding-challenges -
Go to the question folder for the prblem you want to solve
For example:
problem:
2022-06-26-Format_Descriptorquestion folder would be:
coding-challenges/2022-06-26-Format_Descriptor -
You will find out a Solutions folder inside that.
For example:
coding-challenges/2022-06-26-Format_Descriptor/Solutions -
In this folder, create a new folder by your name
For example:
coding-challenges/2022-06-26-Format_Descriptor/Solutions/YOUR_NAME
(you will see a folder named
Ahmad_Razaalready there, that's solution by me)-
Here create any file you want, for your solution. with any extension (.js .py .cpp .txt etc)
-
after adding your solution, commit it to your repo
-
-
open up a terminal and start type following commands
- add all the files you have added to your repo
git add .- commit
git commit -m "i added my solution or any nice message you like"- push the code to your repo
git push origin main
-
-
Go to your repo on GitHub and click on the
Pull Requestsbutton. -
Click on the
New pull requestbutton. -
Click on the
Create Pull Requestbutton. -
Now write a short description of what you have done or leave it empty.
-
Find and Click on the
Create pull requestbutton on that page.
-
Now I will merge your contribution to the main repo 🤗😻.
- 📩 send it to my email: ahmadrazakhan8992@gmail.com
- or 🏌️ create a new issue on this repo
- or 🖇️ give a link to the question
- or ✌️ give a pull request with the question in txt file or in any file you want
- or 🏠 message me on LinkedIn or twitter