adding a code for reversal of array in Python #47
Open
Coder00sharma wants to merge 80 commits into
Open
Conversation
Create CODE_OF_CONDUCT.md
Signed-off-by: Akash <107811139+Akash1437@users.noreply.github.com>
Created merge sort in python
Signed-off-by: Akash <107811139+Akash1437@users.noreply.github.com>
Please accept my PR with all necessary hacktoberfest labels Signed-off-by: amanydv72 <89766177+amanydv72@users.noreply.github.com>
Signed-off-by: Akash <107811139+Akash1437@users.noreply.github.com>
Signed-off-by: Akash <107811139+Akash1437@users.noreply.github.com>
Create quicksort.py
All Operations of Linked list in c
Signed-off-by: Akash <107811139+Akash1437@users.noreply.github.com>
Create move_all.cpp
Signed-off-by: Akash <107811139+Akash1437@users.noreply.github.com>
Create sieve_of_eratosthenes.cpp
hacktoberfest hacktoberfest2022 Signed-off-by: GO V IND <govind123.ga@gmail.com>
Signed-off-by: GO V IND <govind123.ga@gmail.com>
Signed-off-by: LostHeart-Gaming <116107285+LostHeart-Gaming@users.noreply.github.com>
Created add two numbers in c
Signed-off-by: LostHeart-Gaming <116107285+LostHeart-Gaming@users.noreply.github.com>
linear search in c
Signed-off-by: LostHeart-Gaming <116107285+LostHeart-Gaming@users.noreply.github.com>
Created binary Search Algorithm
Signed-off-by: LostHeart-Gaming <116107285+LostHeart-Gaming@users.noreply.github.com>
Move zeros to end in c
Signed-off-by: Razor-5 <116114456+Razor-5@users.noreply.github.com>
Signed-off-by: Razor-5 <116114456+Razor-5@users.noreply.github.com>
Signed-off-by: Razor-5 <116114456+Razor-5@users.noreply.github.com>
Signed-off-by: Razor-5 <116114456+Razor-5@users.noreply.github.com>
Create radix_sort.cpp
Create Balanced_Paranthesis.c
Signed-off-by: Manoj Thapa <109368904+itsmanojthapa@users.noreply.github.com>
Added code for Longest Common Subsequence (issue #70)
added circular queue
Signed-off-by: YashBANSAL4 <116385252+YashBANSAL4@users.noreply.github.com>
Created Reverse Path in Java
Signed-off-by: YashBANSAL4 <116385252+YashBANSAL4@users.noreply.github.com>
Left view Binary Tree in Java
Signed-off-by: YashBANSAL4 <116385252+YashBANSAL4@users.noreply.github.com>
Signed-off-by: YashBANSAL4 <116385252+YashBANSAL4@users.noreply.github.com>
valid Parenthesis in Java
Subtree Difference in Java
Signed-off-by: Punit Soni <109447990+punitsoni22@users.noreply.github.com>
quick_sort.c hacktoberfest
added python bubble sort algorithm Signed-off-by: adipurnamk <muhammad.adipurna.k@gmail.com>
Create bubble_sort.py
Signed-off-by: Tanya Bansal <91904607+22tanyabansal@users.noreply.github.com>
Create Operation of Queue.c
feat : Added running sum
Signed-off-by: Tanya Bansal <91904607+22tanyabansal@users.noreply.github.com>
Create Round Robin.c
Signed-off-by: utkarshaskumbhar <utkarsha.kumbhar@cumminscollege.in>
pascal triangle
Signed-off-by: Tanya Bansal <91904607+22tanyabansal@users.noreply.github.com>
Create FCFS.C
Signed-off-by: Burnout-Devil <116019692+Burnout-Devil@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Let's array is arr[5] = [10, 20, 30, 40, 50] n = 5
i = 0, j = 4
As (0 is less than 4) swap(arr[0],arr[4])
arr[0]=50 and arr[4]=10, i++(i.,e i=1) and j--(i.e, j=3)
Again (1 is less than 3) swap(arr[1],arr[3])
arr[1]=40 and arr[3]=20, i++(i.,e i=2) and j--(i.e, j=2)