What goes in the blank?
# a queue with O(1) pops from the left frontier = ____([start])
Answer: deque
collections.deque pops from either end in constant time, unlike a list.
Play Problem Solving ▸
# a queue with O(1) pops from the left frontier = ____([start])
Answer: deque