Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sorting/radixSort.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# this is a py program for radix sort

def countingSort(arr, exp1):
n = len(arr)
output = [0] * (n)
Expand Down Expand Up @@ -27,9 +29,9 @@ def radixSort(arr):
n = int(input("Enter the size of array : "))
arr = list(map(int, input("Enter the array elements :\n").strip().split()))[:n]

print ("Array Before :: ")
print ("Array Before Sorting:: ")
print (arr)

radixSort(arr)
print ("Array After :: ")
print ("Array After Using Radix Sort :: ")
print (arr)