diff options
author | internetlandlord <f.fredhenry@gmail.com> | 2022-10-26 09:55:31 -0500 |
---|---|---|
committer | internetlandlord <f.fredhenry@gmail.com> | 2022-10-26 09:55:31 -0500 |
commit | 030d136e851340af56c613bca75a4c58d91e8c4a (patch) | |
tree | fe86aaf40738dfbf2a5f3ddff3d0eebe6a59fecd /insertion-sort.py | |
parent | 68c7b0092fcb55bec2e9fa4688ffc99649aebf83 (diff) |
Refactoring/housekeeping on source code for bubble, io and insertion sort files.
Diffstat (limited to 'insertion-sort.py')
-rwxr-xr-x | insertion-sort.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/insertion-sort.py b/insertion-sort.py index dfb7900..41a07da 100755 --- a/insertion-sort.py +++ b/insertion-sort.py @@ -1,6 +1,7 @@ #!/bin/python3 -# --------- Insertion sort +# --------- Insertion Sort Algorithm +# Implementation of algorithm in python # --------- Imported modules import inputoutput as io @@ -26,12 +27,6 @@ def insertionSort(data): # move key after element smaller than it data[j + 1] = key -#testarr = [99,77,44,22,11,33] -#print(testarr) -#insertionSort(testarr) -#FIXME: no return argument needed! -#print(testarr) - # sorting call insertionSort(numdata) |