MIT-Emerging-Talent / 2024-group-11-collaboration-practice

MIT License
0 stars 3 forks source link

Merge sort: I implemented the merge-sort algorithm in Python #43

Open MurtazaHakimi opened 10 months ago

MurtazaHakimi commented 10 months ago

To solve the problem, I implemented the merge-sort algorithm in Python, providing two versions (mergesort_v1 and mergesort_v2). The mergesort_v1 function recursively splits the input array, sorts its halves, and then merges them. The mergesort_v2 function adopts a more concise approach, utilizing the built-in sorted function for merging. Both functions ensure correct sorting for edge cases, such as an empty array or a single element. The test script (test_merge_sort.py) validates the correctness of these implementations through various test cases, covering scenarios of an empty array, single-element arrays, arrays in increasing, decreasing, and random orders. -->

README Documentation

Python Files

Function Docstring

Function Implementation

Unit Test Suite

YaninaChukanova commented 10 months ago

Please delete unnecessary files, as there are each task should have the appropriate files and add READMY with Documentation

Function Docstring Behavior description (Doesnt have, Need to add) Parameter description(Doesnt have, Need to add) Return value description(Doesnt have, Need to add) Include any assumptions(Doesnt have, Need to add)

Unit Test Suite The test class has a docstring ( Doesn`t have, Need to add)