Skip to main content
Admissions guidance, study banks, and career tools โ€” get started on Shalyam

Design HashMap

Implement a hash map without using any built-in hash table. Support put k v, get k and remove k. get prints the value or -1 if the key is absent.

Constraints

1 <= q <= 10^4 0 <= k, v <= 10^6

Discussion

No discussions yet.

Rewards ยท v2.1

Join Shalyam Newsletter

Get exclusive insights with every issue: education, research and innovation news.

One email a week. Unsubscribe any time.