MCPcopy Create free account
hub / github.com/geekcomputers/Python / main

Function main

sorting_algos.py:153–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151
152
153def main():
154 algos = {
155 "selection_sort": ["TC : O(n^2)", "SC : O(1)"],
156 "bubble_sort": ["TC : O(n^2)", "SC : O(1)"],
157 "insertion_sort": ["TC : O(n^2)", "SC : O(1)"],
158 "merge_sort": ["TC : O(n^2)", "SC : O(1)"],
159 "quick_sort": ["TC : O(n^2)", "SC : O(1)"],
160 "counting_sort": ["TC : O(n^2)", "SC : O(1)"],
161 }
162
163 inp = [1, 2, 7, -8, 34, 2, 80, 790, 6]
164 arr = counting_sort(inp)
165 print("U are amazing, Keep up")
166
167
168if __name__ == "__main__":

Callers 1

sorting_algos.pyFile · 0.70

Calls 1

counting_sortFunction · 0.70

Tested by

no test coverage detected