Anonymous user
Sorting algorithms/Comb sort: Difference between revisions
→{{header|MATLAB}}: Optimized the swap
(Added a solution for MATLAB) |
(→{{header|MATLAB}}: Optimized the swap) |
||
Line 387:
if (list(i) > list(i+gap))
swaps = true;
end
|