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

Added the code of Merge Sort, Selection Sort and Bubble Sort #113

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

KunjMaheshwari
Copy link
Contributor

Resolved Issue #108

MergeSort Algorithm - Merge sort is a sorting algorithm that follows the divide and conquer approach. It works by recursively dividing the input array into smaller subarrays and sorting those subarrays then merging them back together to obtain the sorted array.
Time complexity of this Algorithm is O(nlogn)

SelectionSort Algorithm - Selection Sort is a comparison-based sorting algorithm. It sorts an array by repeatedly selecting the smallest (or largest) element from the unsorted portion and swapping it with the first unsorted element. This process continues until the entire array is sorted.
Time complexity of this Algorithm is O(N^2)

BubbleSort Algorithm - Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. This algorithm is not suitable for large data sets as its average and worst-case time complexity are quite high.
Time complexity of this Algorithm is O(N^2)

@KunjMaheshwari
Copy link
Contributor Author

I’ve resolved issue #108 in my pull request, and this is my first contribution to open source. I would greatly appreciate your review and consideration for merging it. Thank you!

@indrakishore indrakishore added Hactoberfest If you want to contribute, please look for issues labeled with **"Hacktoberfest"** or **"good first hactoberfest-accepted If you want to contribute, please look for issues labeled with **"Hacktoberfest"** or **"good first level-1 labels Oct 20, 2024
@indrakishore indrakishore merged commit 61edac9 into indrakishore:main Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hactoberfest If you want to contribute, please look for issues labeled with **"Hacktoberfest"** or **"good first hactoberfest-accepted If you want to contribute, please look for issues labeled with **"Hacktoberfest"** or **"good first level-1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants