Here is the description on the code
Code:
def explain_me(inputs)
my_array = []
while !inputs.empty? # while has any item on inputs array
value = inputs[0] # put the first itom of inputs array into value variable
inputs.each do | input | # this loop find the lowest value of inputs array
if input < value
value = input
end
end # now value is the lowest value of the inputs items
my_array.push value # this lowest value is putting into my_array
inputs.delete value # and deleted from input array
end
return my_array # return my array
end # def explain_me
Do you see?
Have a nice day.