Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
proverbialbunny
· 6y ago · 0 comments
It depends on the hash table. Eg, in the D programming language if there is a collision instead of an array it uses a red-black tree.
This makes it effective O(1) but worse case O(log n).
Comments
[–]
denormalfloat
6y ago
Java does something similar, decaying its HashMap into a binary tree after enough collisions.