DSA_Code icon indicating copy to clipboard operation
DSA_Code copied to clipboard

[REQUEST] Add Merge Sort in Java

Open crazy-coder-neel opened this issue 1 year ago • 2 comments

Algorithm Name

Merge Sort

Programming Language

Java

Category

Sorting

Difficulty Level

Medium (Intermediate)

Algorithm Description

Merge Sort is a divide-and-conquer algorithm that splits an array into two halves, recursively sorts each half, and then merges the sorted halves to form a fully sorted list. It is highly efficient with a time complexity of O(n log n) in the worst, average, and best cases, making it reliable compared to algorithms like Quick Sort, which may degrade to O(n²). Merge Sort is a stable sorting algorithm, preserving the order of equal elements, and performs well with large datasets. It is also ideal for linked lists and external sorting where data cannot fit into memory, as merging is easily managed on disk.

References (Optional)

No response

Contribution Intent

  • [x] I would like to implement this algorithm myself
  • [ ] I'm requesting this for someone else to implement
  • [ ] I need help implementing this algorithm

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

crazy-coder-neel avatar Oct 25 '25 11:10 crazy-coder-neel

@Karanjot786 @crazy-coder-neel can you please assign this issue to me

apurvavats avatar Oct 26 '25 18:10 apurvavats

@Pradeepsingh61 f this issue is not resolved can u please assign this issue to me and add hacktoberfest2025 label too

Nitin-0017 avatar Oct 30 '25 05:10 Nitin-0017