The main aim of competitive programming is to write code solve given problems. The problems are generally mathematical or logical nature and require comprehensive knowledge of data structures, geometry, number theory and graph theory to name a few. Problems related to Artificial Intelligence and Code golf are also popular nowadays.
It’s called “competitive” coding but most people get involved only to improve their own coding skills or just for the thrill of it.
This repository includes a variety of competitive programming problems and the code answers to them. By providing solutions to them, you can make a contribution. Just comment on the issue you want to code for. To contribute, simply follow the steps below!
Imp Links -> Issues | Contributors | Insights
( Below are specific steps )
1. Fork this repository.
2. Clone the forked repository.
git clone https://github.com/<your-github-username>/project_name.git
3. Navigate to the project directory.
cd Competitive-Coding
4. Creating a new branch (IMP) This is one of the very important step that you should follow to contribute in Open Source. A branch helps to manage the workflow, isolate your code and does not creates a mess. To create a new branch:
$ git branch <name_of_branch>
$ git checkout -b <name_of_branch>
Keep your cloned repo upto date by pulling from upstream (this will also avoid any merge conflicts while committing new changes)
git pull origin main
5. Make changes in source code.
6. Stage your changes and commit
# Add changes to Index
git add .
# Commit to the local repo
git commit -m "<your_commit_message>"
7. At this point you can use the git push command to push the changes to the current branch of your forked repository:
git push origin <branch-name>
8. Create a Pull Request/PR !
9. Congratulations! Sit and relax, you've made your contribution to Competitve Coding repository of GDSC Cummins.