Anonymous user
Sorting algorithms/Comb sort: Difference between revisions
minimum gap is 1
(→{{header|Ruby}}: ++ sather) |
(minimum gap is 1) |
||
Line 7:
'''function''' combsort('''array''' input)
gap := input'''.size''' ''//initialize gap size''
'''loop until''' gap
''//update the gap value for a next comb. Below is an example''
'''if'''
''//minimum gap is 1''
gap := 1
'''end if'''
i := 0
|