3 ms·
I can't see how this looks like a bubble sort to you, the inner loop isn't even comparing adjacent elements of the array. Moreover the comparison is the opposi
by SkiFire13 2y ago
I can't see how this looks like a bubble sort to you, the inner loop isn't even comparing adjacent elements of the array.
Moreover the comparison is the opposite of what you would normally do: if A[i] < A[j] then swap(A[i], A[j])