Comment

Comment by proverbialbunny

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).

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton