Open MurtazaHakimi opened 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(Doesn
t have, Need to add)
Return value description(Doesnt have, Need to add) Include any assumptions(Doesn
t have, Need to add)
Unit Test Suite The test class has a docstring ( Doesn`t have, Need to add)
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. -->
main
/master
README Documentation
/src/README.md
Python Files
test_<module_name>.py
Function Docstring
Function Implementation
Unit Test Suite