From 59a9f8c136a81cd54090bad8066719a505976a26 Mon Sep 17 00:00:00 2001 From: PrachiKhatri22 <69357790+PrachiKhatri22@users.noreply.github.com> Date: Wed, 13 Oct 2021 10:31:32 +0530 Subject: [PATCH] Update radixSort.py --- sorting/radixSort.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sorting/radixSort.py b/sorting/radixSort.py index 4f11ecd..c8f2f78 100644 --- a/sorting/radixSort.py +++ b/sorting/radixSort.py @@ -1,3 +1,5 @@ +# this is a py program for radix sort + def countingSort(arr, exp1): n = len(arr) output = [0] * (n) @@ -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)