Sorting algorithms/Bubble sort: Difference between revisions
Content added Content deleted
(Added Qi) |
(→{{header|Qi}}: Simplified. Qi already has a fix function built in.) |
||
Line 2,085: | Line 2,085: | ||
(define bubble-sort |
(define bubble-sort |
||
X -> |
X -> (fix bubble-shot X)) |
||
X -> (bubble-sort (bubble-shot X))) |
|||
(bubble-sort [6 8 5 9 3 2 2 1 4 7]) |
(bubble-sort [6 8 5 9 3 2 2 1 4 7]) |