Sorting algorithms/Bubble sort: Difference between revisions
Content added Content deleted
(→{{header|C}}: Premature optimization is the root of all evil) |
(→[[C plus plus|C++]]: Premature optimization ...) |
||
Line 109: | Line 109: | ||
{ |
{ |
||
done = true ; |
done = true ; |
||
⚫ | |||
--size; |
|||
⚫ | |||
{ |
{ |
||
if( array[i] > array[i+1] ) |
if( array[i] > array[i+1] ) |