Build a hash table where getRandom(), put() and get() are O(1) and delete is O(n).
Asked in the phone interview stage. Implement the structure using PostgreSQL tables and functions, then show its final contents after the prescribed operations.
slot, key, and value.account_003 and deleting account_006.slot ascending.| Column | Type | Description |
|---|---|---|
| slotPK | BIGINT | Compact position of the entry |
| key | VARCHAR(64) | Unique hash-table key |
| value | VARCHAR(32) | Value associated with the key |