Learn new coding concepts faster

Short texts πŸ§‘β€πŸ’» Code snippets ✍️ Reading lists πŸ‘€

Changed Paths

i686-linux	exoscale-cli
x86_64-darwin	exoscale-cli
aarch64-linux	exoscale-cli
x86_64-linux	exoscale-cli

γƒγƒ–γƒ«γ‚½γƒΌγƒˆ

def bubble_sort(array)
  array.size.times do |i|
    array.size.times do |j|
      if array[i] < array[j]
        array[i], array[j] = array[j], array[i]
      end
    end
  end

  array
end

Changed Paths

x86_64-linux	smartdns
i686-linux	smartdns
aarch64-linux	smartdns