/DSA

Collection of DSA problems and solutions

Primary LanguageC++

hacktoberfest

Hi HACKTOBERFEST 2021 IS HERE ‼️‼️‼️

🎭 What is Hacktoberfest ?

♦️ Hacktoberfest is a month-long challenge. It happens every year in the month of October. Hacktoberfest is open to everyone and it marks the celebration of Open Source. It's the biggest Open Source event that encourages newbies to participate in Open Source and create their 1st meaningful PR.

🏆 🏆 Rewards : 🏆🏆

You get some awesome goodies which include A limited-edition T-shirt for FREE! and some stickers.

🤔🤔How can you Join ❔❔

Navigate to the link below 👇 👇 and follow the instructions ✔️ ✔️

https://hacktoberfest.digitalocean.com/register

Excited ⁉️ 🤩 🤩 🤩

To add your contributions towards opensource community and grab the oppurtunity:smiley: :smiley::smiley:

Then lets start with this repository.

😎 😎 DSA 😎 😎 (Collection of DSA problems and solutions 📔 📔)

Head down ⬇️ ⬇️ ⬇️ to see how to get started with the repo and follow the guidelines 🎯 🎯 🎯


🏷️ Use proper folders and subfolders to define catagory and put program file(c/c++/java/python/js) and explanation in a readme file

Example : Array/Sorting&Searching/bubblesort/bubblesort.c (adding a readme file is recommended) Matrix/Matrix Multiplication/Matrix_multiplication.c

⚠️Rules ❕ ❕ 😼 😼 😼:

✅ Pull requests can be submitted to any opted-in repository on GitHub or GitLab.

✅ The pull request must contain commits you made yourself.

✅ If a maintainer reports your pull request as 'spam' or 'invalid', it will not be counted toward your participation in Hacktoberfest.

✅ If a maintainer reports behaviour that’s not in line with the project’s code of conduct, you will be ineligible to participate.

✅ To get a shirt, you must make four approved pull requests (PRs) on opted-in projects between October 1-31 in any time zone. This year, the first 55,000 participants can earn a T-shirt.

⚠️What not to do ❗ ❗ 😤 😤

❌ PRs that are automated (e.g. scripted opening PRs to remove whitespace/optimize images)

❌ PRs that are disruptive (e.g. taking someone else’s branch/commits and making a PR)

❌ PRs that are regarded by a project maintainer as a hindrance vs. helping

❌ Something that’s clearly an attempt to simply +1 your PR count for October

Steps to setup this Repository Locally 🧐 🧐🧐


1️⃣ Fork this repository to your account. 😳 😳


PicsArt_10-04-08 04 45


2️⃣ Go to Git Bash and Clone the forked repository ⌨️ ⌨️ :


   $ git clone https://github.com/your_username/make-pull-request

3️⃣ Add a remote (upstream) to original project repository:

$ cd <cloned-folder> $ git remote add upstream https://github.com/arnab2001/DSA.git


4️⃣ Now synchronize your forked repo:

It will help you to keep your forked repo updated with the original repo

$ git checkout main

$ git fetch upstream

$ git merge upstream/main

$ git push origin main


5️⃣Now create a new branch 🧵:

$ git checkout -b <feature-branch>


6️⃣Open the folder in your favourite code editor and add your changes or modifications.


Creating a PR 😱 😱 😱 😱 :

🔺 After making changes or modification on to your code locally, you need to add these files to the staging area.

  $ git add --all

🔺 Once files added, you need to commit the changes to with an appropriate commit message.

  $ git commit -m "<your-message>"

🔺 After commiting the changes, you need to push the changes

   $ git push origin <your-created-branch-name>

🔺 Once you push the changes to your repository, the Compare & pull request button will appear in GitHub.

🔺 Click it and you'll be taken to this screen

🔺 Type a proper description and give the PR an appropriate title. Finally, Open a pull request by clicking the Create pull request button.

That's it. You have opened a PR. Wait for it to get merged. 🥳 🥳 🥳

🎊 🎊 🎆 🎆 Thanks for your Amazing Contribution!! 💥 💥 💥 💘 💘

📭 📭 You can connect for any query (or can also ask by raising issue)❕ ❕ ❕