logoalt Hacker News

afdbcreidyesterday at 8:54 PM0 repliesview on HN

It is both amortized and average, because the map may need to grow. But the complexity without growing is average, not amortized (it's possible to build hash functions for which the probability will mean O(1) for all accesses, and hash functions which will be O(N) for all accesses).