This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flower_definitions = [ | |
['begonia', 'cautiousness'], | |
['chrysanthemum', 'cheerfulness'], | |
['carnation', 'memories'], | |
['daisy', 'innocence'], | |
['hyacinth', 'playfulness'], | |
['lavender', 'devotion'], | |
['magnolia', 'dignity'], | |
['morning glory', 'unrequited love'], | |
['periwinkle', 'new friendship'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from linked_list_for_hash import Node, LinkedList | |
from blossom_lib import flower_definitions | |
class HashMap: | |
def __init__(self, size): | |
self.array_size = size | |
self.array = [LinkedList() for i in range(size)] | |
def hash(self, key): |
OlderNewer