Kavya-24 / Snippets

Hacktoberfest 2024
41 stars 279 forks source link

Merge Sort Implementation Using Linked Lists #357 #366

Closed amanvatss closed 1 month ago

amanvatss commented 1 month ago

Description:

  1. Summary of Changes:

    • Implemented Merge Sort algorithm for Linked List in the project.
    • The function sorts a linked list by dividing it into two halves, recursively sorting each half, and merging the sorted halves together.
  2. Fixes:

    • This change addresses the issue of inefficient sorting algorithms previously used for linked lists, which may not perform well on large data sets.

4.Motivation and Context:

  1. Dependencies:

    • No additional dependencies are required for this change. The existing linked list data structure is sufficient to implement the merge sort.

Fixes #357

Type of change:

Checklist:

Screenshots / Video:

Screenshot 2024-10-03 103707 Screenshot 2024-10-03 103609 Screenshot 2024-10-03 104455

Kavya-24 commented 1 month ago

Marking this as hacktoberfest-