4 ms·
aka bubble sort
by demosito666 5y ago
aka bubble sort
- miloignis 5y agoIt is definitely not bubble sort, which only uses a single index comparing items next to each other in the array.
- deleted 5y ago[deleted]
- balefrost 5y agoCheck 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.