devops-exercises
devops-exercises copied to clipboard
Implemented recursive merge sort algorithm with O(n log n)
- Implemented recursive merge sort algorithm with O(n log n) time complexity.
- Implemented
mergehelper function for combining sorted sublists. - Introduced
generate_random_listfunction to encapsulate list generation logic. - Created
mainfunction with a docstring detailing time complexity. - Used f-strings for improved readability.
- Enhanced modularity and readability.
- Maintained original functionality and interface for backward compatibility.