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.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.