-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (28 loc) · 708 Bytes
/
main.py
File metadata and controls
30 lines (28 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- coding: utf-8 -*-
"""
@project: Sorting-Algorithms
@version: v1.0.0
@file: main.py
@brief: main file
@software: PyCharm
@author: Kai Sun
@email: autosunkai@gmail.com
@date: 2021/8/1 21:08
@updated: 2021/8/1 21:08
"""
from bubble_sort import *
from selection_sort import *
from insertion_sort import *
from shell_sort import *
from merge_sort import *
from quick_sort import *
from heap_sort import *
from bucket_sort import *
from counting_sort import *
from radix_sort import *
if __name__ == '__main__':
sort = radix_sort
arr = [3, 44, 38, 5, 47, 15, 36, 26, 27, 2, 46, 4, 19, 50, 48]
print('Raw:', arr)
arr = sort(arr)
print('Sorted:', arr)