Build an integer-to-integer map without any built-in hash table. Support put(key, value), get(key) and remove(key). This version uses open addressing: keys live directly in one array, a collision steps to the next slot (linear probing), and removed keys leave a tombstone so later lookups keep probing past them.
Build an integer-to-integer map without any built-in hash table. Support put(key, value), get(key) and remove(key). This version uses open addressing: keys live directly in one array, a collision steps to the next slot (linear probing), and removed keys leave a tombstone so later lookups keep probing past them.