We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
to be honest, no because I'm kind of brand new to the different sorts.
I tried copying the for loops and then changing
swap(a[j], a[j + 1]);
to
a[j] = a[j+1];
but i dont think that works and im away from the computer right now to test it
Sorting: Bubble Sort
You are viewing a single comment's thread. Return to all comments →
to be honest, no because I'm kind of brand new to the different sorts. I tried copying the for loops and then changing swap(a[j], a[j + 1]); to a[j] = a[j+1];