删除元素的时间复杂度是collections.deque多少?
collections.deque
例如:
deq = collections.deque([1, 2, 3]) del deq[1]
python algorithm time-complexity deque data-structures
algorithm ×1
data-structures ×1
deque ×1
python ×1
time-complexity ×1