MCPcopy Create free account
hub / github.com/bregman-arie/devops-exercises / main

Function main

coding/python/merge_sort.py:35–43  ·  view source on GitHub ↗

Executes the merge sort algorithm with a randomly generated list. Time Complexity: O(n log n)

()

Source from the content-addressed store, hash-verified

33
34
35def main():
36 """
37 Executes the merge sort algorithm with a randomly generated list.
38 Time Complexity: O(n log n)
39 """
40 rand_num_li = generate_random_list()
41 print(f"Unsorted List: {rand_num_li}")
42 sorted_list = merge_sort(rand_num_li)
43 print(f"Sorted List: {sorted_list}")
44
45
46if __name__ == '__main__':

Callers 1

merge_sort.pyFile · 0.70

Calls 2

merge_sortFunction · 0.85
generate_random_listFunction · 0.70

Tested by

no test coverage detected