Skip to main content

Design a Concurrent HashMap

Build a hash map that many threads can use at once: put, get and remove on string keys, with nothing lost or corrupted when threads write at the same moment, and without making every thread wait for one lock.

How the round runs

Hard · 5 stages · 5 questions · 60 min
~6 min
Requirements Gathering
lists
~3 min
Identifying Core Entities
cards
~14 min
Designing Classes & Relationships
diagram
~28 min
Code Implementation
code
~9 min
Deep Dives
code

Set up your round

Level

Interviewer

Duration

Junior · Standard · 60 min