e1c4e6a7c7db68e123d978bfc56feb057898935f,Counting-sort.py,,,#,46

Before Change


    return output
    
//----- take list from user-----------
li_st = [int(x) for x in input().split()]
print("Unsorted List")
print(li_st)

////------working on our algo-----------
print("\nSorted list using basic counting sort")
output = counting_sort(li_st, max(li_st) +1, get_sortkey) 
print(output)

After Change

//python program for counting sort (updated)
n=int(input("please give the number of elements\n"))
tlist = list()
print("okey now plase give the elemets")
for i in range(n):
  tlist.append(int(input("\n")))
k = max(tlist)
n = len(tlist)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: geekcomputers/Python
Commit Name: e1c4e6a7c7db68e123d978bfc56feb057898935f
Time: 2019-10-24
Author: kostasdedesar@penguin
File Name: Counting-sort.py
Class Name:
Method Name:


Project Name: TheAlgorithms/Python
Commit Name: 7dff214d9ba2bd178830d06422073022def49ba3
Time: 2016-07-29
Author: me@sergeytsaplin.com
File Name: BinarySeach.py
Class Name:
Method Name:


Project Name: TheAlgorithms/Python
Commit Name: b93a9d8e8faa115d06a6bd656f5bf0e91254c1de
Time: 2020-10-25
Author: kushagrabansalajmer@gmail.com
File Name: maths/lucas_series.py
Class Name:
Method Name: