Various ways of implementing bubble sort?

Posted by Lemurik on Stack Overflow See other posts from Stack Overflow or by Lemurik
Published on 2009-10-20T17:00:26Z Indexed on 2010/05/12 9:34 UTC
Read the original article Hit count: 334

How should I implement the classic bubble sort algorithm? I'd particularly like to see a C++ implementation, but any language (even pseudocode) would be helpful.

P.S. Not a homework.

© Stack Overflow or respective owner

Related posts about bubble-sort

Related posts about sorting