Back to problems

Implement a HashMap Without Built-in Libraries

Object-Oriented Programming · Amazon · Medium

Problem: Implement a HashMap Without Built-In Hash Containers Create a simplified HashMap data structure from scratch. You may not use any standard hash-based containers or libraries, including Python dict/set, Java HashMap, or C++ unordered_map. Your implementation must provide these operations: put(key, value): Store the pair, replacing the old value when the key is already present. get(key) -> value: Return the value associated with key, or -1 when no such key exists.…

Checking your access…