Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quicksort.py file is updated #195

Open
wants to merge 513 commits into
base: dsacp
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
513 commits
Select commit Hold shift + click to select a range
738cb01
snake_game.py
harshit-2003 Mar 2, 2022
fa193d0
snake_gamee
harshit-2003 Mar 2, 2022
1fc08ff
Create working of project
harshit-2003 Mar 2, 2022
c24aab8
simple game
Aishwarya2003 Mar 2, 2022
d006ed0
Create DigiClock.py
harshit-2003 Mar 2, 2022
388a6c0
Create pic1
harshit-2003 Mar 2, 2022
1890ec3
Add files via upload
harshit-2003 Mar 2, 2022
7a55f94
Delete pic1
harshit-2003 Mar 2, 2022
81becec
Delete pic1
harshit-2003 Mar 2, 2022
9e4e0f2
Added Inverted Full pyramid
KeerthanaPravallika Mar 2, 2022
e314adc
Added Right Arrow Pattern
KeerthanaPravallika Mar 2, 2022
bda0f42
Added X Pattern
KeerthanaPravallika Mar 2, 2022
d18da00
Added Left Arrow Pattern
KeerthanaPravallika Mar 2, 2022
b9850b4
Insertion sort
Aishwarya2003 Mar 2, 2022
66e545a
Added Largest Number formed from numbers in array
KeerthanaPravallika Mar 2, 2022
eb3ea52
Create README.md
prathimacode-hub Mar 2, 2022
77eb2de
Create small_game.py
harshit-2003 Mar 2, 2022
c578ea6
Create README.md
prathimacode-hub Mar 2, 2022
f944f85
Create README.md
prathimacode-hub Mar 2, 2022
d3e0a11
Create small_game.md
harshit-2003 Mar 2, 2022
b331e6f
Add files via upload
prathimacode-hub Mar 2, 2022
8089059
Update small_game.py
harshit-2003 Mar 2, 2022
012cd5c
Delete README.md
prathimacode-hub Mar 2, 2022
d7e66d8
Add files via upload
prathimacode-hub Mar 2, 2022
e94f437
Add files via upload
prathimacode-hub Mar 2, 2022
a3b1b05
Update README.md
prathimacode-hub Mar 2, 2022
ee1f747
Create roll_dice.py
harshit-2003 Mar 2, 2022
8721648
Create output
harshit-2003 Mar 2, 2022
f969dd6
Update roll_dice.py
harshit-2003 Mar 2, 2022
2266195
Added Maximum Absolute Difference
KeerthanaPravallika Mar 2, 2022
75beb9a
Added Rotate matrix by 90 degrees
KeerthanaPravallika Mar 2, 2022
da09617
Added Maximum Non Negative Subarray
KeerthanaPravallika Mar 2, 2022
e7d1607
Added Max steps to reach nth stair
KeerthanaPravallika Mar 2, 2022
35cc369
Added Consecutive Prime Sum
KeerthanaPravallika Mar 2, 2022
dc89cb8
add how to get started
lem0n4id Mar 2, 2022
7c86782
Added Kth Smallest Element in a Tree
KeerthanaPravallika Mar 2, 2022
2ed1187
Merge branch 'IEEE-WIE-VIT:main' into main
prathimacode-hub Mar 2, 2022
2f62ac6
Selection sort
Aishwarya2003 Mar 2, 2022
cf9c7fa
Add files via upload
dnimm Mar 2, 2022
7a1df96
Merge pull request #89 from Aishwarya2003/main
A-GHOSH-dev Mar 2, 2022
1b1590c
add desc about flask
lem0n4id Mar 2, 2022
17adff5
add project layout
lem0n4id Mar 2, 2022
9604a9f
add table of contents
lem0n4id Mar 2, 2022
e190119
Merge pull request #109 from lem0n4id/about-flask
A-GHOSH-dev Mar 2, 2022
c39ddaa
Merge pull request #107 from dnimm/dnimm
A-GHOSH-dev Mar 2, 2022
421e445
Merge pull request #105 from KeerthanaPravallika/Pravallika-Recursion2
A-GHOSH-dev Mar 2, 2022
8439282
Merge pull request #103 from KeerthanaPravallika/Pravallika-Recursion1
A-GHOSH-dev Mar 2, 2022
eb12986
Merge pull request #102 from KeerthanaPravallika/Keerthana-trees2
A-GHOSH-dev Mar 2, 2022
5029aa6
Merge pull request #100 from KeerthanaPravallika/Keerthana-trees1
A-GHOSH-dev Mar 2, 2022
d866db4
Merge pull request #99 from KeerthanaPravallika/Keerthana-strings2
A-GHOSH-dev Mar 2, 2022
af8b42e
Merge pull request #88 from harshit-2003/main
A-GHOSH-dev Mar 2, 2022
67abab1
Merge pull request #97 from KeerthanaPravallika/Keerthana-strings1
A-GHOSH-dev Mar 2, 2022
641d6bf
Merge pull request #96 from prathimacode-hub/main
A-GHOSH-dev Mar 2, 2022
4768c3f
Merge pull request #95 from KeerthanaPravallika/Keerthana-flask1
A-GHOSH-dev Mar 2, 2022
c1d73c7
Merge pull request #90 from KeerthanaPravallika/Keerthana
A-GHOSH-dev Mar 2, 2022
9d4cfa4
Merge pull request #91 from KeerthanaPravallika/KeerthanaPravallika
A-GHOSH-dev Mar 2, 2022
58afe3c
Merge pull request #93 from KeerthanaPravallika/Keerthana-Django
A-GHOSH-dev Mar 2, 2022
9c2ef5e
Merge pull request #92 from KeerthanaPravallika/Keerthana-Stack1
A-GHOSH-dev Mar 2, 2022
7b30f14
Delete snake_game.py
A-GHOSH-dev Mar 2, 2022
26bb705
Palindrome number
Aishwarya2003 Mar 2, 2022
b368b99
Factorial Recursion
Aishwarya2003 Mar 2, 2022
f0def30
Stack Recursion
Aishwarya2003 Mar 2, 2022
89c97b1
Merge pull request #119 from Aishwarya2003/main
A-GHOSH-dev Mar 2, 2022
623c816
Implementing Queue
Aishwarya2003 Mar 2, 2022
9c620cf
Create README.md
prathimacode-hub Mar 2, 2022
4ed3cc6
Create requirements.txt
prathimacode-hub Mar 2, 2022
3d6c0b4
Merge pull request #123 from Aishwarya2003/main
A-GHOSH-dev Mar 2, 2022
e049694
Create yt-trending-scraper.py
prathimacode-hub Mar 2, 2022
154b205
Create README.md
prathimacode-hub Mar 2, 2022
07d7ae4
Add files via upload
prathimacode-hub Mar 2, 2022
4333010
Delete README.md
prathimacode-hub Mar 2, 2022
c926c7c
Create README.md
prathimacode-hub Mar 2, 2022
10e077f
Create requirements.txt
prathimacode-hub Mar 2, 2022
5d6385d
Create spotify_songs_lyrics_extractor.py
prathimacode-hub Mar 2, 2022
4e2a472
Create README
prathimacode-hub Mar 2, 2022
cade82c
Add files via upload
prathimacode-hub Mar 2, 2022
68e5e74
Create README
prathimacode-hub Mar 2, 2022
481c045
Create game_2.py
harshit-2003 Mar 2, 2022
940258c
Add files via upload
prathimacode-hub Mar 2, 2022
f941b52
Merge pull request #131 from harshit-2003/main
A-GHOSH-dev Mar 2, 2022
4e8a099
Add files via upload
prathimacode-hub Mar 2, 2022
427d257
Delete README
prathimacode-hub Mar 2, 2022
a3250da
Delete README
prathimacode-hub Mar 2, 2022
b7a4974
Create README.md
prathimacode-hub Mar 2, 2022
4ca2bf3
Create job_search_tool.py
prathimacode-hub Mar 2, 2022
84abc61
Create tic-tac.py
harshit-2003 Mar 2, 2022
4071c3f
Create requirements.txt
prathimacode-hub Mar 2, 2022
264daae
Create README
prathimacode-hub Mar 2, 2022
eaa8203
Add files via upload
prathimacode-hub Mar 2, 2022
3f5ec8e
Delete README
prathimacode-hub Mar 2, 2022
1c01872
Create README.md
harshit-2003 Mar 2, 2022
54f2652
Create draw_messagge.PNG
harshit-2003 Mar 2, 2022
61c8e4b
Add files via upload
harshit-2003 Mar 2, 2022
e6d0640
Delete draw_messagge.PNG
harshit-2003 Mar 2, 2022
d1f536d
Merge pull request #133 from prathimacode-hub/main
A-GHOSH-dev Mar 2, 2022
9251f8b
Update README.md
harshit-2003 Mar 2, 2022
6767373
Update README.md
harshit-2003 Mar 2, 2022
0068f53
Create README.md
harshit-2003 Mar 2, 2022
5402f76
Create Age_calculator.py
harshit-2003 Mar 2, 2022
ef045bf
Update README.md
harshit-2003 Mar 2, 2022
93acc16
Merge pull request #135 from harshit-2003/main
A-GHOSH-dev Mar 2, 2022
0039e02
Implementing Dequeue
Aishwarya2003 Mar 2, 2022
8249f62
Merge pull request #160 from Aishwarya2003/main
A-GHOSH-dev Mar 2, 2022
63ab773
Update Linkedlist.md
lem0n4id Mar 2, 2022
cd0d3a2
Merge pull request #162 from lem0n4id/about-linked-list
A-GHOSH-dev Mar 3, 2022
56bb21e
Add files via upload
Aishwarya2003 Mar 3, 2022
42cc96b
Add files via upload
Aishwarya2003 Mar 3, 2022
ae20ec9
Merge pull request #165 from Aishwarya2003/main
A-GHOSH-dev Mar 3, 2022
a9081c8
Create README.md
prathimacode-hub Mar 3, 2022
4951721
Create _init_.py
prathimacode-hub Mar 3, 2022
7c39b0d
Create asgi.py
prathimacode-hub Mar 3, 2022
32c8c54
Create settings.py
prathimacode-hub Mar 3, 2022
be21a50
Create urls.py
prathimacode-hub Mar 3, 2022
4ef932d
Create wsgi.py
prathimacode-hub Mar 3, 2022
b77121c
Create manage.py
prathimacode-hub Mar 3, 2022
63d41ce
Create __init__.py
prathimacode-hub Mar 3, 2022
43db749
Create admin.py
prathimacode-hub Mar 3, 2022
5736531
Create apps.py
prathimacode-hub Mar 3, 2022
37b5180
Create forms.py
prathimacode-hub Mar 3, 2022
e15d05d
Create models.py
prathimacode-hub Mar 3, 2022
81f128b
Create tests.py
prathimacode-hub Mar 3, 2022
0e08c1f
Create views.py
prathimacode-hub Mar 3, 2022
4b6170c
Create 0001_initial.py
prathimacode-hub Mar 3, 2022
0775136
Create 0002_auto_20200113_1620.py
prathimacode-hub Mar 3, 2022
73f9063
Create 0003_patient_ill.py
prathimacode-hub Mar 3, 2022
374f4b1
Create __init__.py
prathimacode-hub Mar 3, 2022
f07d7f2
Create README
prathimacode-hub Mar 3, 2022
128c2a1
Create README
prathimacode-hub Mar 3, 2022
659e14a
Create README
prathimacode-hub Mar 3, 2022
da31c3e
Add files via upload
prathimacode-hub Mar 3, 2022
8244de5
Add files via upload
prathimacode-hub Mar 3, 2022
186b0d9
Add files via upload
prathimacode-hub Mar 3, 2022
c5fe3f9
Add files via upload
prathimacode-hub Mar 3, 2022
2111aba
Create AddData.html
prathimacode-hub Mar 3, 2022
f892fa5
Create about.html
prathimacode-hub Mar 3, 2022
90f86b1
Create app1.html
prathimacode-hub Mar 3, 2022
1b0afe4
Create app2.html
prathimacode-hub Mar 3, 2022
760290b
Create contact.html
prathimacode-hub Mar 3, 2022
2931d31
Create display.html
prathimacode-hub Mar 3, 2022
8ed1b52
Create display_doc.html
prathimacode-hub Mar 3, 2022
7206441
Create edit.html
prathimacode-hub Mar 3, 2022
fd3d60c
Create home.html
prathimacode-hub Mar 3, 2022
3672bf0
Create invoice.html
prathimacode-hub Mar 3, 2022
ce8ff73
Create log.html
prathimacode-hub Mar 3, 2022
2250d49
Delete logo.jpg
prathimacode-hub Mar 3, 2022
1a53469
Create .gitignore
prathimacode-hub Mar 3, 2022
e7334c4
Add files via upload
prathimacode-hub Mar 3, 2022
36c414b
Create README
prathimacode-hub Mar 3, 2022
6b9db5b
Add files via upload
prathimacode-hub Mar 3, 2022
40ea927
Delete README
prathimacode-hub Mar 3, 2022
ba5a32b
Add files via upload
Aishwarya2003 Mar 3, 2022
2fd194c
Create README
prathimacode-hub Mar 3, 2022
570c5c6
Add files via upload
prathimacode-hub Mar 3, 2022
d8bcf38
Delete README
prathimacode-hub Mar 3, 2022
9d30eb4
Delete p1.pptx
prathimacode-hub Mar 3, 2022
6b83c20
Create README
prathimacode-hub Mar 3, 2022
0f6b9f3
Add files via upload
prathimacode-hub Mar 3, 2022
79811d1
Add files via upload
Aishwarya2003 Mar 3, 2022
6aa0bb9
Create README
prathimacode-hub Mar 3, 2022
2c9582b
Add files via upload
prathimacode-hub Mar 3, 2022
6d1513b
Update README.md
prathimacode-hub Mar 3, 2022
12bcc4d
Update README.md
prathimacode-hub Mar 3, 2022
2052276
Merge branch 'IEEE-WIE-VIT:main' into main
prathimacode-hub Mar 3, 2022
69baefc
Delete stamp.jpg
prathimacode-hub Mar 3, 2022
bbf936f
Add files via upload
Aishwarya2003 Mar 3, 2022
c9d5b3e
Merge pull request #166 from prathimacode-hub/main
A-GHOSH-dev Mar 3, 2022
bdecca1
Add files via upload
Aishwarya2003 Mar 3, 2022
a9536ee
Merge pull request #167 from Aishwarya2003/main
A-GHOSH-dev Mar 3, 2022
b03aa88
Create README.md
prathimacode-hub Mar 3, 2022
88c59d1
Add files via upload
prathimacode-hub Mar 3, 2022
7ce9601
Update requirements.txt
prathimacode-hub Mar 3, 2022
6d78501
Update Application of Pyramid.md
Aishwarya2003 Mar 3, 2022
71be44e
Add files via upload
Aishwarya2003 Mar 3, 2022
1519716
Added Roman to Integer
KeerthanaPravallika Mar 3, 2022
d21d908
Update Application of Pyramid.md
Aishwarya2003 Mar 3, 2022
f6588ef
Update README.md
prathimacode-hub Mar 3, 2022
39fc993
Update README.md
prathimacode-hub Mar 3, 2022
e8750d9
Update Application of Pyramid.md
Aishwarya2003 Mar 3, 2022
4e46086
Create README
prathimacode-hub Mar 3, 2022
fcd0339
Delete Hello world.png
Aishwarya2003 Mar 3, 2022
ea71261
Add files via upload
prathimacode-hub Mar 3, 2022
bee14fb
Added Longest Common Prefix
KeerthanaPravallika Mar 3, 2022
80a3389
Added Substring of size 3 unique
KeerthanaPravallika Mar 3, 2022
642a14d
Merge pull request #170 from prathimacode-hub/main
A-GHOSH-dev Mar 3, 2022
e40a4f1
Added Reversing a sentence without reversing individual words
KeerthanaPravallika Mar 3, 2022
5fe7c91
Removing Duplicates in a string
KeerthanaPravallika Mar 3, 2022
bac8757
Merge branch 'IEEE-WIE-VIT:main' into KeerthanaPravallika
KeerthanaPravallika Mar 3, 2022
6abf055
Kaggle Notebook | Predicting Credit Card Approval | Version 1
urvisinghal Mar 3, 2022
bc494de
Merge pull request #171 from KeerthanaPravallika/KeerthanaPravallika
A-GHOSH-dev Mar 3, 2022
b117525
Delete predicting-credit-card-approval.ipynb
urvisinghal Mar 3, 2022
c941564
Kaggle Notebook | Predicting Credit Card Approval | Version 1
urvisinghal Mar 3, 2022
845b46d
Add files via upload
urvisinghal Mar 3, 2022
d1f727c
Create README.md
urvisinghal Mar 3, 2022
f79b45c
First
urvisinghal Mar 3, 2022
fe86f12
Create README.md
urvisinghal Mar 3, 2022
72bb413
Add files via upload
urvisinghal Mar 3, 2022
2ef3c55
Update Application of Pyramid.md
Aishwarya2003 Mar 3, 2022
af88e2f
Update Application of Pyramid.md
Aishwarya2003 Mar 3, 2022
a02c4ad
Merge pull request #173 from Aishwarya2003/main
A-GHOSH-dev Mar 3, 2022
519d164
Merge pull request #172 from UrviSinghal28/mlai
A-GHOSH-dev Mar 3, 2022
1535df7
Added Full Pyramid
KeerthanaPravallika Mar 3, 2022
e56f23f
Create Half_Diamond.py
KeerthanaPravallika Mar 3, 2022
baed3b2
Create Hollow_Diamond.py
KeerthanaPravallika Mar 3, 2022
41458c6
add sample app and tutorial on flask
lem0n4id Mar 3, 2022
bffd14f
Create README.md
prathimacode-hub Mar 3, 2022
7f902eb
Add files via upload
prathimacode-hub Mar 3, 2022
8dea536
Update app.py
prathimacode-hub Mar 3, 2022
8316a2f
Update car_model_classifier[resnet_50].py
prathimacode-hub Mar 3, 2022
b73bebf
Add files via upload
prathimacode-hub Mar 3, 2022
560a9e7
Create README
prathimacode-hub Mar 3, 2022
bc3e7b2
Create main.css
prathimacode-hub Mar 3, 2022
140593e
Delete README
prathimacode-hub Mar 3, 2022
72eba8f
Create main.js
prathimacode-hub Mar 3, 2022
7ce3e1e
Delete main.js
prathimacode-hub Mar 3, 2022
a606e13
Delete main.css
prathimacode-hub Mar 3, 2022
a08ace0
Create base.html
prathimacode-hub Mar 3, 2022
bd5cdea
Create index.html
prathimacode-hub Mar 3, 2022
f9ba03d
Update README.md
prathimacode-hub Mar 3, 2022
7b5faae
Merge pull request #178 from prathimacode-hub/main
A-GHOSH-dev Mar 3, 2022
a3603d5
Merge pull request #177 from lem0n4id/build-flask-app
A-GHOSH-dev Mar 3, 2022
e98796e
Merge pull request #176 from KeerthanaPravallika/KeerthanaPravallika
A-GHOSH-dev Mar 3, 2022
e4614e5
Create Readme.md
KeerthanaPravallika Mar 3, 2022
e0c074b
Create Assistant.py
KeerthanaPravallika Mar 3, 2022
628e63e
Merge pull request #181 from KeerthanaPravallika/KeerthanaPravallika
A-GHOSH-dev Mar 3, 2022
23feb51
Create README.md
prathimacode-hub Mar 3, 2022
f0a3e79
Create README.md
prathimacode-hub Mar 3, 2022
1aacdaa
Create README.md
prathimacode-hub Mar 3, 2022
16c48a3
Delete README.md
prathimacode-hub Mar 3, 2022
28ae0b5
Add files via upload
prathimacode-hub Mar 3, 2022
1978ff4
Add files via upload
prathimacode-hub Mar 3, 2022
a8ac4e2
Add files via upload
prathimacode-hub Mar 3, 2022
ba5c690
Add files via upload
prathimacode-hub Mar 3, 2022
dcacba2
Update README.md
prathimacode-hub Mar 3, 2022
8aa2bd9
Update README.md
prathimacode-hub Mar 3, 2022
7ee72fc
Create Readme.md
KeerthanaPravallika Mar 3, 2022
08d5b67
Add files via upload
KeerthanaPravallika Mar 3, 2022
da2638b
Create Readme.md
KeerthanaPravallika Mar 3, 2022
52c1c22
Added Sports Resource Booking files
KeerthanaPravallika Mar 3, 2022
24a145b
Create readme.md
KeerthanaPravallika Mar 3, 2022
daa002a
Added NUMPY AND PANDAS Basic Functions
KeerthanaPravallika Mar 3, 2022
642b4e5
Delete README.md
prathimacode-hub Mar 3, 2022
efcd3be
Create README.md
prathimacode-hub Mar 3, 2022
e35c18e
Merge pull request #182 from prathimacode-hub/main
A-GHOSH-dev Mar 4, 2022
3530e24
Merge pull request #183 from KeerthanaPravallika/KeerthanaPravallika
A-GHOSH-dev Mar 4, 2022
cb172df
Merge pull request #184 from KeerthanaPravallika/Keerthana
A-GHOSH-dev Mar 4, 2022
f412f29
Merge pull request #185 from KeerthanaPravallika/Keerthana-Django
A-GHOSH-dev Mar 4, 2022
615acd8
Update BubbleSort.py
thor-harsh Aug 19, 2023
45c2154
Update Selectionsort.py
thor-harsh Aug 20, 2023
d575b11
Merge pull request #1 from thor-harsh/thor-harsh-patch-2
thor-harsh Aug 20, 2023
3087041
Update QuickSort.py
thor-harsh Aug 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added CONTRIBUTION GUIDE.pdf
Binary file not shown.
103 changes: 103 additions & 0 deletions CONTRIBUTION GUIDELINES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# CONTRIBUTION GUIDE:

WIEWoC encourages individuals to share their knowledge and ideas to develop technical skills and gain valuable experience in the field of technology. We are creating a PYTHON content repository which is full of valuable resources. Folders for different domains like Web Development, GUI, ML with Python have been created and contribution to a specific domain will go to that folder only. Inside each directory there will be subdirectories for sub-topics of that particular domain. There is a specific branch for each of the domains and participants need to contribute to that branch only. For example, if someone is contributing to Web Development or a subtopic of it, contributions to that domain should only go to that branch.

## Types of contribution you can make
Any contribution you make, code is necessary.
1. Documentation + Code
2. Code only
3. Code + Self made Video/Audio (uploaded in youtube or gdrive)

## Adding new subtopics under domains
Create a folder with name of the sub topic, add your content and create PR in respective domain branch.
For example you want to add subtopic JPython in GUI. Create a folder named JPython and upload in GUI Folder and create PR from gui branch.

## Basics of Git and GitHub

### Git & GitHub

Before we proceed, it's better to know the difference between Git and Github. Git is a version control system (VCS) that allows us to keep track of the history of our source code , whereas GitHub is a service that hosts Git projects.

We assume you have created an account on Github and installed Git on your System.

Now enter your name and E-mail (used on Github) address in Git, by using following command.

`$ git config --global user.name "YOUR NAME"`
` $ git config --global user.email "YOUR EMAIL ADDRESS"`
This is an important step to mark your commits to your name and email.

<br />

### Fork a project

You can make a copy of the project to your account. This process is called forking a project to your Github account. On Upper right side of project page on Github, you can see -

<p align="center"> <img src="https://i.imgur.com/P0n6f97.png"> </p>
Click on fork to create a copy of project to your account. This creates a separate copy for you to work on.

<br />

<br />

### Clone the forked project

You have forked the project you want to contribute to your github account. To get this project on your development machine we use clone command of git.

`$ git clone https://github.com/IEEE-WIE-VIT/WIE-WoC.git` <br/>
Now you have the project on your local machine.

<br />

### Add a remote (upstream) to original project repository

Remote means the remote location of project on Github. By cloning, we have a remote called origin which points to your forked repository. Now we will add a remote to the original repository from where we had forked.

`$ cd <your-forked-project-folder>`
`$ git remote add upstream https://github.com/IEEE-WIE-VIT/WIE-WoC.git` <br/>
You will see the benefits of adding remote later.

<br />

### Synchronizing your fork

Open Source projects have a number of contributors who can push code anytime. So it is necessary to make your forked copy equal with the original repository. The remote added above called Upstream helps in this.

`$ git checkout main`
`$ git fetch upstream`
`$ git merge upstream/main`
`$ git push origin main` <br/>
The last command pushes the latest code to your forked repository on Github. The origin is the remote pointing to your forked repository on github.

<br />

### Create a new branch for a feature or bugfix

Usually, all repositories have a main branch that is regarded to be stable, and any new features should be developed on a separate branch before being merged into the main branch. As a result, we should establish a new branch for our feature or bugfix and go to work on the issue.

`$ git checkout -b <feature-branch>`
This will create a new branch out of master branch. Now start working on the problem and commit your changes.

`$ git add --all`
`$ git commit -m "<commit message>"`
The first command adds all the files or you can add specific files by removing -a and adding the file names. The second command gives a message to your changes so you can know in future what changes this commit makes. If you are solving an issue on original repository, you should add the issue number like #35 to your commit message. This will show the reference to commits in the issue.

<br />

### Push code and create a pull request

You now have a new branch containing the modifications you want in the project you forked. Now, push your new branch to your remote github fork.

`$ git push origin <feature-branch>`
Now you are ready to help the project by opening a pull request means you now tell the project managers to add the feature or bug fix to original repository. You can open a pull request by clicking on green icon -

<p align="center"> <img src="https://i.imgur.com/aGaqAD5.png"> </p>

Remember your upstream base branch should be main and source should be your feature branch. Click on create pull request and add a name to your pull request. You can also describe your feature.

Amazing! You've already made your first contribution.🥳

#### BE OPEN FOR US TO CONTACT YOU!

#### Happy Coding 👩‍💻👩‍💻


19 changes: 19 additions & 0 deletions DSA Coding/Array/BinarySearch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Binary Search

def binary_search(arr, target):
low = 0
high = len(arr) - 1
while low <= high:
mid = (low + high) // 2
if arr[mid] == target:
return mid
elif arr[mid] < target:
low = mid + 1
else:
high = mid - 1
return -1

n = int(input("Enter number: "))
arr = list(map(int, input().split()))
target = int(input("Enter target: "))
print(binary_search(arr, target))
12 changes: 12 additions & 0 deletions DSA Coding/Array/BubbleSort.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Bubble Sort

def bubbleSort(arr):
for i in range(len(arr)):
for j in range(len(arr)-1-i):
if arr[j] > arr[j+1]:
arr[j], arr[j+1] = arr[j+1], arr[j]
return arr

n = int(input("Enter number: "))
arr = list(map(int, input().split()))
print(bubbleSort(arr))
40 changes: 40 additions & 0 deletions DSA Coding/Array/Consecutive_Prime_Sum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
def isPrime(num):
i=2
flag=0
while(i*i <= num):
if(num%i==0):
flag+=1
break
i+=1
if(flag==1):
return 0
else:
return 1

t = int(input())

for i in range(t):
n = int(input())
l = []
for k in range(2,n+1):
if isPrime(k):
l.append(k)
count = 0
sumt = 0
nl = l[2:]
for i in range(0,len(l)):
sumt += l[i]
if sumt in nl:
count += 1
print(count)











19 changes: 19 additions & 0 deletions DSA Coding/Array/CountingSort.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Counting Sort

def countingSort(arr):
max_val = max(arr)
min_val = min(arr)
count = [0] * (max_val - min_val + 1)
for i in arr:
count[i - min_val] += 1
index = 0
for i in range(len(count)):
while count[i] > 0:
arr[index] = i + min_val
index += 1
count[i] -= 1
return arr

n = int(input("Enter number: "))
arr = list(map(int, input().split()))
print(*countingSort(arr))
26 changes: 26 additions & 0 deletions DSA Coding/Array/HeapSort.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#Heap Sort

def heapify(arr, n, i):
largest = i
l = 2 * i + 1
r = 2 * i + 2
if l < n and arr[i] < arr[l]:
largest = l
if r < n and arr[largest] < arr[r]:
largest = r
if largest != i:
arr[i], arr[largest] = arr[largest], arr[i]
heapify(arr, n, largest)

def heapSort(arr):
n = len(arr)
for i in range(n, -1, -1):
heapify(arr, n, i)
for i in range(n-1, 0, -1):
arr[i], arr[0] = arr[0], arr[i]
heapify(arr, i, 0)
return arr

n = int(input("Enter number: "))
arr = list(map(int, input().split()))
print(*heapSort(arr))
15 changes: 15 additions & 0 deletions DSA Coding/Array/InsertionSort.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def insertion_sort(alist):
for i in range(1, len(alist)):
temp = alist[i]
j = i - 1
while (j >= 0 and temp < alist[j]):
alist[j + 1] = alist[j]
j = j - 1
alist[j + 1] = temp


alist = input('Enter the list of numbers: ').split()
alist = [int(x) for x in alist]
insertion_sort(alist)
print('Sorted list: ', end='')
print(alist)
15 changes: 15 additions & 0 deletions DSA Coding/Array/KadaneAlgo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def kadaneAlgorithm(n,arr):
sum_num = 0
max_sum = 0
for i in range(n):
sum_num += arr[i]; #maximum ending here
if arr[i] > sum_num:
sum_num = arr[i]
if max_sum < sum_num: #comparing maximum ending here , maximum so far
max_sum = sum_num
return max_sum

size = int(input())
l = [int(x) for x in input().split()]
max_sm = kadaneAlgorithm(size,l)
print(max_sm)
12 changes: 12 additions & 0 deletions DSA Coding/Array/LargestNumber_formed_from_array.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def largestNumber(self, a):

largestnumber =''
for i in range(len(a)-1):
for j in range(i+1, len(a)):
string1 = str(a[i])+str(a[j])
string2 = str(a[j])+str(a[i])
if int(string2) > int(string1):
a[i] , a[j] = a[j] , a[i]
for i in range(len(a)):
largestnumber += str(a[i])
return int(largestnumber)
13 changes: 13 additions & 0 deletions DSA Coding/Array/LinearSearch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#Linear Search

def linear_search(arr, target):
for i in range(len(arr)):
if arr[i] == target:
return i
return -1


n = int(input("Enter number: "))
arr = list(map(int, input().split()))
target = int(input("Enter target: "))
print(linear_search(arr, target))
45 changes: 45 additions & 0 deletions DSA Coding/Array/Matrix Difference/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
r1 = int(input())
c1 = int(input())
M1 = []
M3 = []
for row_counter in range(r1):
matrix_row = input().strip() + " "
M_row = []
temp = ''
counter = 0
column_counter = 0
while column_counter < c1:
if matrix_row[counter] != ' ':
temp += matrix_row[counter]
else:
M_row.append(temp)
temp = ''
column_counter += 1
counter += 1
M1.append(M_row)
M3.append(M_row)
r2 = int(input())
c2 = int(input())
M2 = []
for row_counter in range(r2):
matrix_row = input().strip() + " "
temp = ''
counter = 0
column_counter = 0
while column_counter < c2:
if matrix_row[counter] != ' ':
temp += matrix_row[counter]
else:
M2.append(temp)
temp = ''
column_counter += 1
counter += 1
for row_counter in range(r1):
for column_counter in range(c1):
if M1[row_counter][column_counter] in M2:
M3[row_counter][column_counter] = '0'
for row_counter in range(r1):
for column_counter in range(c1):
print(M3[row_counter][column_counter], end=" ")
print()

9 changes: 9 additions & 0 deletions DSA Coding/Array/Maximum_Absolute_Difference.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def maxArr(self, A):

mx = -10000000000
for i in range(len(A)):
for j in range(len(A)):
res = abs(A[i]-A[j])+abs(i-j)
if res > mx:
mx = res
return mx
32 changes: 32 additions & 0 deletions DSA Coding/Array/Maximum_Non_Negative_Subarray.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
def maxset(self, A):
mxsum = -1
l = []
nl = []
for i in range(len(A)):
if A[i] < 0:
if sum(nl) > mxsum:
mxsum = sum(nl)
l = []
for num in nl:
l.append(num)

elif sum(nl) == mxsum and len(l) < len(nl):
l = []
for num in nl:
l.append(num)

nl = []
else:
nl.append(A[i])
if sum(nl) > mxsum:
mxsum = sum(nl)
l = []
for num in nl:
l.append(num)
nl = []
elif sum(nl) == mxsum and len(l) < len(nl):
l = []
for num in nl:
l.append(num)
nl = []
return l
Loading