There was an error while loading. Please reload this page.
1 parent d165e32 commit 3b8576eCopy full SHA for 3b8576e
Python/Algorithms/Sorting-Algorithms/shell_sort.py
@@ -1,5 +1,9 @@
1
# Python program for implementation of Shell Sort
2
3
+# Shell sort is an algorithm that first sorts the elements far apart
4
+# from each other and successively reduces the interval
5
+# between the elements to be sorted. It is a generalized version of insertion sort.'''
6
+
7
def shellSort(values):
8
9
# Start with a somewhat big gap, then reduce the gap
0 commit comments