From 9fff1d3b5c9c6b145a19fa3e447efbb28bff0f29 Mon Sep 17 00:00:00 2001 From: Christian Nygaard Date: Sun, 6 Oct 2024 23:47:48 +0200 Subject: [PATCH] Code cleanup main.py remove extra double data list, remove test code from main since test code have moved to test.py. --- main.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/main.py b/main.py index 4a87f5e..5fc9db9 100644 --- a/main.py +++ b/main.py @@ -129,12 +129,6 @@ def counting_sort(input_list, exp): # Example usage: if __name__ == "__main__": data = [170, -45, 75, -90, 802, -24, 2, 66, -1, 0, 123, -500] - data = [170, -45, 75, -90, 802, -24, 2, 66, -1, 0, 123, -500, 10000, -10000, 1000000, -1000000, 1000000000, -1000000000] sorted_data = hyrmis_sort(data) - print("Sorted input_listay:", sorted_data) - -def test_data(): - # Generate list of 10000 random integers - data = [random.randint(-10000, 10000) for _ in range(10000)] - return data \ No newline at end of file + print("Sorted input_listay:", sorted_data) \ No newline at end of file