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


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: 4

Non-data size: 5

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: maxpumperla/deep_learning_and_the_game_of_go
Commit Name: a17ac3677d207e04a53ed70fa971fbf436c0266f
Time: 2020-04-08
Author: 41198454+JingOY0610@users.noreply.github.com
File Name: code/dlgo/agent/alphago.py
Class Name: AlphaGoMCTS
Method Name: policy_rollout


Project Name: UFAL-DSG/tgen
Commit Name: fb50688c503567c5db6207e45e2c5e2ee1ad33df
Time: 2014-08-25
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/features.py
Class Name:
Method Name: depth


Project Name: UFAL-DSG/tgen
Commit Name: fb50688c503567c5db6207e45e2c5e2ee1ad33df
Time: 2014-08-25
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/features.py
Class Name:
Method Name: max_children