Let's have a hash table with n keys, and each key has a bucket of only one value. Suppose that we look for a key that doesn't exist in the hash table, what will be the worst-case time complexity of this operation?
In my opinion, it'll be O(n). The hashfunction will have to review all its keys in order to figure out that the given key doesn't exist in the hash.
What do you think? Am I right?