← Back to problems
Anduril • design / hashing
Design Hash Map
AeroSpace • Anduril • chaining collision resolution
Build your own hash map: put / get / remove. Index with key % B, resolve collisions via separate chaining (linked lists per bucket). Telemetry ID → state store flavor.
AvgO(1)
WorstO(n)
Buckets8
Active bucket
Chain node
Collision / update
op—
bucket—
result—
Ready
Press Play. Watch puts collide into the same bucket and chain.