DSA Key Problems

Design HashMap

Build a map from integer keys to integer values that supports inserting or updating a pair, retrieving a value, and removing a key. A lookup for a missing key must return -1.