Reported in a candidate post, Jul 2016
Count bubble-sort swaps for a sample array and for general n
Filed under Teradata
The question
Two questions asked the number of swaps performed by bubble sort, one for a concrete array and one for the general case of size n.
No write-up yet. Related questions below have one.
Related Teradata questions
Collected from public candidate posts and coding forums. Updated Nov 2026.