3 ms·
The bubble sort has an off-by-one error: The outer loop has i go from 1 to A.length and then references A[i+1].
by mjcohenw 15y ago
The bubble sort has an off-by-one error: The outer loop has i go from 1 to A.length and then references A[i+1].
3 ms·