3 ms·
Check the direction of the comparison, and check the bounds of the loops. It's not really bubble sort.
by balefrost 5y ago
Check the direction of the comparison, and check the bounds of the loops. It's not really bubble sort.
- recursive 5y agoAnd check whether the compared elements are adjacent.