We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f03e18 commit 506ae67Copy full SHA for 506ae67
src/python/radix_sort.py
@@ -1,5 +1,6 @@
1
import random
2
3
+
4
def radix_sort(arr):
5
# Find the maximum number to know the number of digits
6
max_num = max(arr)
@@ -43,15 +44,12 @@ def main():
43
44
45
print("Random Testing Array")
46
arr = []
- for i in range(0,10):
47
- arr.append(random.randint(0,20))
+ for i in range(0, 10):
48
+ arr.append(random.randint(0, 20))
49
print("Unsorted array:", arr)
50
radix_sort(arr)
51
print("Sorted array:", arr)
52
53
-
54
55
56
if __name__ == "__main__":
57
main()
0 commit comments