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

Add Merge Sort Algorithm Implementation #19

Open
mudassir0002 opened this issue Oct 3, 2024 · 6 comments
Open

Add Merge Sort Algorithm Implementation #19

mudassir0002 opened this issue Oct 3, 2024 · 6 comments
Assignees

Comments

@mudassir0002
Copy link
Contributor

Objective:
I would like to contribute to this repository by adding the code implementation of the Merge Sort algorithm in Python. Merge Sort is a well-known and efficient sorting algorithm with a time complexity of O(n log n). It operates by dividing the array into halves, recursively sorting them, and then merging the sorted halves together.

Implementation Details:
The function will take an unsorted list as input and return a sorted list using the merge sort technique. The implementation will ensure that it meets the standard coding guidelines of the repository.


Input:

  • A list of integers, arr, where:
    • 1 ≤ len(arr) ≤ 10^5
    • -10^9 ≤ arr[i] ≤ 10^9

Output:

  • A list of integers sorted in non-decreasing order.

Example Test Case:

Input:

arr = [38, 27, 43, 3, 9, 82, 10]

Output:

[3, 9, 10, 27, 38, 43, 82]

Constraints:

  • The function must run in O(n log n) time complexity where n is the number of elements in the array.
  • Auxiliary space must be kept minimal.

Request for Label:
Please assign the Hacktoberfest label to this issue to indicate that this contribution is part of Hacktoberfest 2024.

Additional Request:
Once the issue is approved, kindly assign it to me so I can begin working on it.

Thank you for considering this contribution!

@Satyam-nitp
Copy link

Can you assign it to me @harsh-dart

@RaheelaTabassum
Copy link

please assign it to me

@aryaman0406
Copy link

Hi @harsh-dart please assign me this task.

@Blacksujit
Copy link

/assign

@Blacksujit
Copy link

Blacksujit commented Oct 15, 2024

Link to PR --> #110

@Smriti-Prajapati
Copy link

Hey please assign this issue to me for Hactoberfest 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants