Sorting algorithms/Bubble sort: Difference between revisions
Content added Content deleted
(+python) |
(Properly ordering the languages) |
||
Line 150: | Line 150: | ||
Note: Of course, there's no need to implement bubble sort in Perl as it has sort built-in. |
Note: Of course, there's no need to implement bubble sort in Perl as it has sort built-in. |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
==[[Ruby]]== |
==[[Ruby]]== |
||
Line 178: | Line 190: | ||
puts ary.sort! |
puts ary.sort! |
||
# => [3, 4, 6, 6, 8, 23, 78] |
# => [3, 4, 6, 6, 8, 23, 78] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ |