3 ms·
Are you sure? With two separately incrementing indexes? Lazy bubble sort would still have a double loop counting to n, but it should be comparing A[j] and A[j
by Dylan16807 5y ago
Are you sure? With two separately incrementing indexes?
Lazy bubble sort would still have a double loop counting to n, but it should be comparing A[j] and A[j+1]. 'i' would not be used inside the loop.