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