I hereby claim:
- I am charmcitygavin on github.
- I am charmcitygavin (https://keybase.io/charmcitygavin) on keybase.
- I have a public key ASDbXamsi-Jbjp8IqsUoHe-uyGwANMNd9g_TlpBp0_Tq7Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
test |
def mode(array) | |
# This sets up the hash, each new key defaulting to a value of 0 | |
count = Hash.new(0) | |
# This iterates through the original array, | |
# increasing each number's hash value each time it appears in the array. | |
array.each do |number| |