Sorting algorithms/Cocktail sort with shifting bounds: Difference between revisions

Content added Content deleted
m (C - use pointers instead of indices)
m (added a blank.)
Line 71: Line 71:
end
end
end</lang>
end</lang>
<big>'''%'''</big> &nbsp; indicates a comment, &nbsp; and &nbsp; '''deal''' &nbsp; indicates a ''swap''.
<big>'''%'''</big> &nbsp; indicates a comment, &nbsp; and &nbsp; '''deal''' &nbsp; indicates a &nbsp; ''swap''.