## Hash table runtime complexity (insert, search and delete)

Hash tables are O(1) average and amortized case complexity, however it suffers from O(n) worst case time complexity. [And I think this is where your confusion is] Hash tables suffer from O(n) worst time complexity due to two reasons: If too many elements were hashed into the same key: looking inside this key may take O(n) time. Once a hash table has passed its load balance – it has …