Skip to content

Instantly share code, notes, and snippets.

View MaximeD's full-sized avatar
🏠
Working from home

Maxime Demolin MaximeD

🏠
Working from home
View GitHub Profile
@MaximeD
MaximeD / test
Created October 7, 2011 19:33 — forked from oelmekki/test
#!/usr/bin/env ruby
array, places = [1,2,3,8,5,8,0,4], []
puts "Maximum value of array is #{array.max.to_s}"
array.each_with_index do |val,i|
places << i if val == array.max
end