79604692

Date: 2025-05-03 12:23:07
Score: 1
Natty:
Report link

In Python, lookups in a set stay constant time on average O(1), even with hundreds of millions of elements, as long as there's enough RAM and no serious hash collisions. So, I think, that the maximum size of a set for fast lookup is mostly limited by available memory, not by the algorithm itself.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Viktor Sbruev