Load Factor and Resizing
A lower load factor generally means fewer collisions but more memory usage.
A higher load factor improves memory efficiency but can increase lookup cost.
Resizing usually allocates a larger table.
Existing entries must be rehashed because bucket indexes depend on table capacity.
A resize operation itself can take O(n).
Over many insertions, resizing can still preserve amortized O(1) insertion.