我知道检查集合中的 x 是否为 O(1) 的时间复杂度,但是如果 x 不在集合中呢?那会是 O(1) 还是因为 set 类似于字典?
python performance big-o set time-complexity
big-o ×1
performance ×1
python ×1
set ×1
time-complexity ×1