Hash Table Complexity
Average-case lookup: expected O(1).
Worst-case lookup: O(n) for a conventional chained or open-addressed table.
Performance depends on hash quality, load factor, collision strategy, and implementation.
Resizing helps maintain the expected constant-time behavior.
Some modern implementations can improve pathological bucket behavior to O(log n) using balanced trees.