Hacker News new | ask | show | jobs
by lorantt 3556 days ago
O(1) is usually prefixed with "amortized" or "average worst-case", which is where the difference in interpretation comes from imo. I found this explanation a bit wishy washy on some details but good (and has an appropriate appeal to authority/original sources).

https://m.reddit.com/r/compsci/comments/2z74z8/why_is_hashta...

1 comments

Yup, pathological worst-case can be annotated with an omega Ω(n).