Sorting algorithms/Bubble sort: Difference between revisions
Content deleted Content added
→{{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] )
|