Skip to content

Instantly share code, notes, and snippets.

View kirillzh's full-sized avatar
☀️

Kirill Zhukov kirillzh

☀️
View GitHub Profile
def recursion
raise Exception
rescue Exception
recursion
end
@kirillzh
kirillzh / quicksort.rb
Last active August 29, 2015 14:25
Quicksort on Ruby
def quicksort(array)
return [] if array.empty?
less, more, pivot = [], [], array[0]
array[1..-1].each { |x| (x <= pivot ? less : more) << x }
quicksort(less) + [pivot] + quicksort(more)
end
# This file is located in "robot" folder
*** Settings ***
Documentation CommonResource file with KWs
Library OperatingSystem
*** Variables ***
${SRC_PATH} ../../src/
*** Keywords ***