This file contains hidden or 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
| # Implement a hashmap in Python without using a dictionary | |
| # A simple toy example, look to improve when the hashes start clashing with each other either by adapting a dynamic size | |
| # Or using a better hash function | |
| class HashMap(object): | |
| def __init__(self, size, hash_function): | |
| self.array = [None] * size | |
| self.size = size |
This file contains hidden or 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
| import sys | |
| import cv2 | |
| import numpy as np | |
| import xlsxwriter | |
| if len(sys.argv) != 4: | |
| print("That's not how it works") | |
| sys.exit(404) |