Jump to content

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++ )
--size;
for( INDEX_TYPE i = 0 ; i < size ; i++ )
{
if( array[i] > array[i+1] )
973

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.