Sorting algorithms/Bubble sort: Difference between revisions

Content added Content deleted
(J style solution)
Line 571:
<lang J>
bubbleSort=: (([ (>. , <.) {.@]) , }.@])/^:_
)</lang>
 
Test program: