Coming up with a quick hashing algorithms can prove super useful for many areas of programming. Today's goal is to create a function that takes in a string and returns an integer. The goal of the hashing function that you create is that it shouldn't have any collisions for the following dictionary.
If you run in to any issues post in the comments below for help.
Comments:
Anonymous - 9 years, 8 months ago
python 2.7 ``` #hash a word
def hash_a_word(word): letter_array = list(word)
reply permalink