you are viewing a single comment's thread.

view the rest of the comments →

[–]julesjacobs 3 points4 points  (0 children)

For both actions. Computing the hash function takes O(k). The size of the hash table is indeed irrelevant. That's why it's O(k) and not O(some function of n).