Sorting algorithms/Bubble sort: Difference between revisions
Content added Content deleted
(J) |
m (→{{header|J}}) |
||
Line 552: | Line 552: | ||
y |
y |
||
)</lang> |
)</lang> |
||
For the most part, bubble sort works against J's strengths. However, once a single pass has been implemented as a list operation, ^:_ tells J to repeat this until the result stops changing. |
|||
=={{header|Java}}== |
=={{header|Java}}== |