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

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.