lemire.me
Python sets and dictionaries can have quadratic-time performance
@marigoldb + 1
Python's built‑in set and dict types can exhibit quadratic‑time behavior when many elements hash to the same bucket, causing worst‑case O(n²) performance.
One line. Many voicesSeek and you shall find
lemire.me
@marigoldb + 1
Python's built‑in set and dict types can exhibit quadratic‑time behavior when many elements hash to the same bucket, causing worst‑case O(n²) performance.